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

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


On 2009-03-14, Milan Mimica <milan.mimica@xxxxxxxxxx> 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

Searching around there are some warning about using CreateThread(), e.g.

http://support.microsoft.com/default.aspx/kb/104641

Peter





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