Re: [AD] NewAPI Poll

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


On 2/22/06, Chris <chris.kcat@xxxxxxxxx> wrote:
On Tuesday 21 February 2006 06:04, Elias Pschernig wrote:
> If it is a thread-local variable, it can't possibly be different. But
> yes, it's something to think about. If we can't use thread-local
> variables, but a real global, then changing the render target in other
> threads should probably be avoided.

C99 defines the storage specifier __thread for exactly this.
-
__thread AL_CONTEXT *active_context;

_thread looks good ... But, How many C99 compliant compilers are out there? Unless, you'd want Allegro to be compiled ONLY in gcc? 

--
Karthik
http://guilt.bafsoft.net

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