bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #39126] NSConditionLock -lockWhenCondition:beforeDate: bug


From: Richard Frith-Macdonald
Subject: [bug #39126] NSConditionLock -lockWhenCondition:beforeDate: bug
Date: Fri, 31 May 2013 09:34:01 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.29.13 (KHTML, like Gecko) Version/6.0.4 Safari/536.29.13

Update of bug #39126 (project gnustep):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

Thanks ... this was intermittently failing for me because of a race
condition.
When the second thread locked the mutex before the first thread, and held it
locked, the first thread could not lock the mutex and could not even enter the
timed wait for the condition.

The fix for this was to add a timeout on the initial lock ... so that the
-lockWhenCondition:beforeDate: method can return NO in the case where another
thread is holding the mutex.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39126>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]