From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26799 invoked by alias); 15 Mar 2013 19:12:30 -0000 Received: (qmail 26778 invoked by uid 22791); 15 Mar 2013 19:12:27 -0000 X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Mar 2013 19:12:22 +0000 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UGa3B-0002do-MO for ecos-devel@ecos.sourceware.org; Fri, 15 Mar 2013 12:12:21 -0700 Date: Fri, 15 Mar 2013 19:12:00 -0000 From: jamescmaki To: ecos-devel@ecos.sourceware.org Message-ID: <1363374741686-225606.post@n7.nabble.com> In-Reply-To: <1363370179179-225589.post@n7.nabble.com> References: <000901ce09de$3d3dc0d0$b7b94270$@cc> <1363370179179-225589.post@n7.nabble.com> Subject: Re: Cyg_Mutex::check_this() fails MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2013-03/txt/msg00002.txt.bz2 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.