mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
fix for bug #39126
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36686 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7358c7d942
commit
dd840e5838
2 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,13 @@
|
|||
2013-05-31 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSLock.m: ([-lockWhenCondition:beforeDate:])
|
||||
Lock mutex using -lockBeforeDate: so that we can abandon the wait
|
||||
for the condition at the spacified date in the case where we can't
|
||||
even obtain a lock before that date.
|
||||
Fix for bug #39126
|
||||
|
||||
2013-05-29 Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||
|
||||
* Headers/Foundation/NSString.h
|
||||
make NSStringEncoding enum typdef to NSUInteger
|
||||
* Source/Additions/Unicode.m
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue