mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Add addOperationWithBlock: to NSOperationQueue
This commit is contained in:
parent
88dd60a8fc
commit
2553b6d56d
2 changed files with 13 additions and 2 deletions
|
@ -674,6 +674,13 @@ static NSOperationQueue *mainQueue = nil;
|
|||
[internal->lock unlock];
|
||||
}
|
||||
|
||||
- (void) addOperationWithBlock: (GSBlockOperationBlock)block
|
||||
{
|
||||
NSBlockOperation *bop = [NSBlockOperation blockOperationWithBlock: block];
|
||||
[self addOperation: bop];
|
||||
}
|
||||
|
||||
|
||||
- (void) addOperations: (NSArray *)ops
|
||||
waitUntilFinished: (BOOL)shouldWait
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue