[AD] tls.c Question

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


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?

Pete




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