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?