OK I didn't think that through fully.

if (( locked && owner == NULL )

The thread sees locked == true, gets rescheduled, then sees owner == NULL.



--
View this message in context: 
http://sourceware-org.1504.n7.nabble.com/Cyg-Mutex-check-this-fails-tp222044p225606.html
Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.

Reply via email to