342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
|
[queue appendObject: job];
[queueCondition signal];
} @finally {
[queueCondition unlock];
}
}
- (void)waitUntilFinished
{
for (;;) {
[countCondition lock];
@try {
if (doneCount == count)
return;
|
|
|
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
|
[queue appendObject: job];
[queueCondition signal];
} @finally {
[queueCondition unlock];
}
}
- (void)waitUntilDone
{
for (;;) {
[countCondition lock];
@try {
if (doneCount == count)
return;
|