This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: Cyg_Mutex::check_this() fails
- From: jamescmaki <jamescmaki at gmail dot com>
- To: ecos-devel at ecos dot sourceware dot org
- Date: Fri, 15 Mar 2013 12:12:21 -0700 (PDT)
- Subject: Re: Cyg_Mutex::check_this() fails
- References: <000901ce09de$3d3dc0d0$b7b94270$@cc> <1363370179179-225589.post@n7.nabble.com>
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.