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

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


Milan Mimica wrote:
Peter Wang wrote:
That introduces another (probably more likely) problem.
_al_thread_create() returns, then it's quite possible that the user then
calls another function which accesses `thread->thread' *before*
thread_proc_trampoline() has filled it in.  So more synchronisation is
needed.

Anyone willing to fix this?  Otherwise into the bug tracker it goes...

CreateThread()?
http://msdn.microsoft.com/en-us/library/ms682453(VS.85).aspx


i think CreateThread has requirements for closing handles, or calling end_thread or something like that, which can be problematic, however if we are using the trampoline function, cleanup can go in the there after the user supplied function returns.

aj.






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