[M3devel] race condition setting act.handle?
jay.krell at cornell.edu
Mon Dec 7 07:55:08 CET 2009
pthread_create(act.handle) followed at some point by use of act.handle in the new thread.
Or possibly getting on the list of threads in the new thread and then a third thread looking at that list.
What is to cause act.handle to be stored before the new thread starts and uses act.handle?
For this reason in Win32 I create the thread suspended, store the handle, resume the thread.
Apparently there is no direct equivalent in pthreads, you have to use your own mutex+condition variable.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the M3devel