License
Distributed under the
Boost Software License 1.0.
(See accompanying file LICENSE)
The osthread module provides types used in threads modules.
(See accompanying file LICENSE)
This class is intended to simplify certain common programming techniques.
Thread create(void function() fn)Creates and starts a new Thread object that executes fn and adds it to the list of tracked threads.Thread create(void delegate() dg)Creates and starts a new Thread object that executes dg and adds it to the list of tracked threads.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.int opApply(scope int delegate(ref Thread) dg)Operates on all threads currently tracked by this object.void joinAll(bool rethrow = true)Iteratively joins all tracked threads. This function will block add, remove, and opApply until it completes.