detachedThreads |
Returns the number of running threads.
+ (int)detachedThreads;
Returns the number of threads detached by
detachNewCountedThreadSelector:toTarget:withObject:.
N.B.: threads not detached explicitly using
detachNewCountedThreadSelector:toTarget:withObject:
will not be counted as running.
sleepUntilThreadsNumber: |
Causes thread to block until numberOfThreads remain.
+ (void)sleepUntilThreadsNumber:(int) numberOfThreads;
Block until the number of threads detached by
detachNewCountedThreadSelector:toTarget:withObject: reaches numberOfThreads.
If multiple threads finish or start before the thread calling
this method is signalled such that the number of
counted threads is not equal to numberOfThreads, this thread
may continue to block.
N.B.: threads not detached explicitly using
detachNewCountedThreadSelector:toTarget:withObject:
will not be counted as running.
(Last Updated March 11, 2007)