mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Add support for 'concurrent' NSOperations, but remove the pools of theads and
and run normal operations each in their own until we re-instate pools. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32440 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6e6720d36f
commit
db78d4cd8e
6 changed files with 160 additions and 256 deletions
|
@ -110,7 +110,7 @@ int main()
|
|||
PASS(([obj1 maxConcurrentOperationCount] == NSOperationQueueDefaultMaxConcurrentOperationCount), "max concurrent set to default");
|
||||
PASS_EXCEPTION([obj1 setMaxConcurrentOperationCount: -1000000];,
|
||||
NSInvalidArgumentException,
|
||||
"NSOperationQueue cannot be given neagative count");
|
||||
"NSOperationQueue cannot be given negative count");
|
||||
|
||||
obj2 = [NSOperation new];
|
||||
[obj1 addOperation: obj2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue