Module Thread

Description

This module contains classes and functions for interacting and synchronizing with threads.

Note

For convenience some of the classes here are emulated (and are thus available) when threads are not supported.

Some of the classes that have such fallbacks are: Condition, Fifo, Local, Mutex, MutexKey and Queue.

See also

Thread, Mutex, Condition


Constant MUTEX_SUPPORTS_SHARED_LOCKS

constant Thread.MUTEX_SUPPORTS_SHARED_LOCKS

Description

Recognition constant for support of shared locks.

If this symbol exists and is not 0 then the Mutex class supports shared locks (ie has Mutex()->shared_lock() et al).


Constant THREAD_ABORTED

constant Thread.THREAD_ABORTED

Description

Thread state: The thread has terminated by throwing an uncaught error.

See also

Thread()->status()


Constant THREAD_EXITED

constant Thread.THREAD_EXITED

Description

Thread state: The thread has terminated by returning a value from the thread function.

See also

Thread()->status()


Constant THREAD_NOT_STARTED

constant Thread.THREAD_NOT_STARTED

Description

Thread state: The thread has not yet started executing.

See also

Thread()->status()


Constant THREAD_RUNNING

constant Thread.THREAD_RUNNING

Description

Thread state: The thread has started and has not yet terminated.

See also

Thread()->status()