|
Public Member Functions |
| ThreadGroup (IN(RString) name) |
| create a new thread group on given name
|
| ThreadGroup (IN(RThreadGroup) parent, IN(RString) name) |
| create a new thread group as child for given parent
|
int | activeCount () |
| return the number of active threads in this thread group
|
int | activeGroupCount () |
| return the number of active child threads groups in this thread group
|
void | checkAccess () |
void | destroy () |
| - Exceptions:
-
|
int | enumerate (IN(RThreadArray) list, bool recursive=false) |
| Fill list with all threads of this thread group.
|
int | enumerate (IN(RThreadGroupArray) list, bool recursive=false) |
| Fill list with all child threads groups of this thread group.
|
int | getMaxPriority () |
| return the maximum priority of this thread group
|
RString | getName () |
| return the name of this thread group
|
RThreadGroup | getParent () |
| return the parent thread group.
|
bool | isDaemon () |
| return true if this thread group is a deamon thread group
|
bool | isDestroyed () |
void | interrupt () |
void | list () |
| Print threads to System::out.
|
bool | parentOf (IN(RThreadGroup) group) |
| return true if group is parent of this group
|
void | setDaemon (bool on) |
| set this thread group as deamon
|
void | setMaxPriority (int prio) |
| set the maximum priority of this thread group.
|
virtual RString | toString () |
| return a string representation of this object Object::toString() return getName() by default
|
virtual void | uncaughtException (IN(RThread) t, IN(RThrowable) e) |
| will be called if a thread ends with uncatched exception
|
Static Public Member Functions |
RThreadGroup | getRoot () |
| return the root thread group (in which also the main-thread is running
|
Private Member Functions |
| ThreadGroup () |
void | _removeThread (IN(RThread) thread) |
void | _addThread (IN(RThread) thread) |
Private Attributes |
RThreadGroup | _parent |
RString | _name |
::acdk::util::RVector | _children |
::acdk::util::RVector | _threads |
int | _maxPriority |
bool | _isDaemon |
Static Private Attributes |
RThreadGroup | _root |
Friends |
class | Thread |