[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2008-04-20, Peter Hull <peterhull90@xxxxxxxxxx> wrote:
> tls.c has a lot of functions that are like this:
> /* Function: al_get_target_bitmap
> *
> * Return the target bitmap of the current display.
> */
> ALLEGRO_BITMAP *al_get_target_bitmap(void)
> {
> if ((tls = tls_get()) == NULL)
> return 0;
> return tls->target_bitmap;
> }
>
> but 'tls' is a static global variable in tls.c so doesn't that break
> the 'thread-local' aspect of things?
Yes, that surely would.
Peter