[M3devel] race condition setting act.handle?

Jay K 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.

 - Jay

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20091207/c28523e9/attachment-0001.html>


More information about the M3devel mailing list