mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
* Source/GSXML.m (fatalErrorFunction): Use correct function to get
line number. * Source/NSOperation.m (_execute): Surround with NS_DURING to free lock on error.
This commit is contained in:
parent
4a5db5621f
commit
d774dda8a7
3 changed files with 15 additions and 1 deletions
|
@ -1000,6 +1000,7 @@ static NSOperationQueue *mainQueue = nil;
|
|||
max = maxConcurrent;
|
||||
}
|
||||
|
||||
NS_DURING
|
||||
while (NO == [self isSuspended]
|
||||
&& max > internal->executing
|
||||
&& [internal->waiting count] > 0)
|
||||
|
@ -1047,6 +1048,12 @@ static NSOperationQueue *mainQueue = nil;
|
|||
[internal->cond unlockWithCondition: 1];
|
||||
}
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
[internal->lock unlock];
|
||||
[localException raise];
|
||||
}
|
||||
NS_ENDHANDLER
|
||||
[internal->lock unlock];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue