[AD] 4.9/src/win/wxthread.c

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


i see threading issues...
_beginThread() 's  return value can be wrong for short lived threads

the return value is stored in the thread->thread member
the trampoline should call thread->thread = GetCurrentThread(); to ensure it gets a valid handle, as the handle _has_to exist at the time of the GetCurrentThread() call.

aj.






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