Title:

children() - obtain the vector of threads whose parent is the given thread.

Usage:

children(thread )

Arguments:

thread:
the thread object whose children we are requesting.

Return Value:

a vector of thread objects which are the threads with the given thread, thread argument, as their parent.

The natural parent of a thread is the value of self() where the call to thread() is evaluated. A thread can be created with a parent specified other than the natural parent using the parent argument to thread.

See Also:

thread
thread class
parent

Examples:

       # wait until one of the threads sets the finished flag
    getLock(lock, condition = Quote(finished == T)))
       # kill all of the other children
    cancel(children(), wait=T) 

Key Words:

User Level Threads

Last modified: Thu Feb 6 18:32:35 1997