#include <ThreadGroup.h>
Create a thread group with the specified name. parentGroup specifies the parent ThreadGroup which defaults to the default top-level group.
Destroy the thread group. All of the running threads should be stopped before the ThreadGroup is destroyed.
Detach the thread, joins are no longer possible.
Arrange to have the threadGroup gang scheduled, so that all of the threads will be executing at the same time if multiprocessing resources permit. This interface will typically be employed by the Thread::parallel static method, and will typically not be called directly by user code. Threads added to the group after this call may or may not be included in the schedule gang.
Wait until all of the threads have completed.
int numActive |
( |
bool |
countDaemon | ) |
|
Return a snapshot of the number of living threads. If countDaemon is true, then daemon threads will be included in the count.
Return the parent ThreadGroup. Returns null if this is the default threadgroup.
Resume all of the threads in this thread group.
Stop all of the threads in this thread group.
The documentation for this class was generated from the following files: