git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36686 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2013-05-31 09:28:14 +00:00
parent 5c58cc793a
commit 3329cac81c
2 changed files with 13 additions and 1 deletions

View file

@ -404,7 +404,10 @@ MUNLOCK
- (BOOL) lockWhenCondition: (NSInteger)condition_to_meet
beforeDate: (NSDate*)limitDate
{
[_condition lock];
if (NO == [_condition lockBeforeDate: limitDate])
{
return NO;
}
if (condition_to_meet == _condition_value)
{
return YES;