The OpenD Programming Language

core.thread.threadgroup

The osthread module provides types used in threads modules.

Members

Functions

add
void add(Thread t)

Add t to the list of tracked threads if it is not already being tracked.

create
Thread create(void delegate() dg)

Creates and starts a new Thread object that executes dg and adds it to the list of tracked threads.

joinAll
void joinAll(bool rethrow)

Iteratively joins all tracked threads. This function will block add, remove, and opApply until it completes.

opApply
int opApply(int delegate(ref Thread) dg)

Operates on all threads currently tracked by this object.

remove
void remove(Thread t)

Removes t from the list of tracked threads. No operation will be performed if t is not currently being tracked by this object.

Meta

License

Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)

Authors

Sean Kelly, Walter Bright, Alex Rønne Petersen, Martin Nowak