[AD] [ alleg-Patches-2050282 ] Remove _al_current_display

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Patches item #2050282, was opened at 2008-08-13 21:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=2050282&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Library
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Peter Hull (peterhull90)
Assigned to: Nobody/Anonymous (nobody)
Summary: Remove _al_current_display

Initial Comment:
_al_current_display is a macro that calls al_get_current_display(). It is used as if it were a global variable when it is a function that could be slow because it accesses thread local state. This patch replaces all uses of _al_current_display with a single call to al_get_current_display() at the head of each function that uses it, and assigns it to a local variable.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=2050282&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/