#include <thread.h>
Inheritance diagram for more::cf::thread:
|
Construct an undefined thread object. This object becomes defined afther assigning another thread object or calling set_call. |
|
Construct a shallow copy of x.
|
|
Destruct a thread descriptor. The thread data will be released when all instances of thread is out of scope and the thread has returned. |
|
Construct a thread which will run the given closure when started. This is equivalend to default construction followed by a set_call. |
|
Throw a thread_cancel exception in the thread. The cancellation will be acknowledged only after the code calls checkpoint(). |
|
True iff the thread is started and has not yet returned.
|
|
True iff the thread cancel() method has been called for this thread. The thread has not necessarily acknowledged this and may still be running. |
|
True iff a closue has been assigned to the thread.
|
|
True iff an exception was raised in the thread. Implies is_finished(). |
|
True iff the thread has returned.
|
|
True iff the thread is running.
|
|
True iff the thread has been started.
|
|
Wait for a thread to stop. Uncaught exceptions, but not thread_canceled, will be rethrown, but with loss of type-information. That is, exceptions derived from exception, logic_error or runtime error will be rethrown as this base class. |
|
Returns is_defined().
|
|
Assign a shallow copy of x.
|
|
Set the closure to call. The thread must not have been started. |
|
Start the given closure in a new thread.
|
|
|
|
The thread descriptor of the thread from which this function is called. The main thread returns an undefined descriptor at the moment, though this may change. |