interface to threads that should be portable. More...
Classes | |
| class | Mutex |
| Is a lock that allows a thread to have exlusive rights to something. More... | |
| class | MutexLocker |
| Is an object that is convenient to use when a mutex should be locked and unlocked automaticly when returning. More... | |
| class | ConditionVar |
| Is an object that is faciliates many threads to wait for something to happen. More... | |
| class | ReadWriteLock |
| class | Barrier |
| class | Thread |
| is the base class for all threads. Start it by creating it and give it the function or CallBack to execute. More... | |
| class | WorkManager |
| is the top manager of everything. Give the tasks to it and it will be performed in time. Note that no notification is done when the task is done. It's up to the user of the class to implement such things in the ThreadTask. More... | |
Functions | |
| int | getNrProcessors () |
| void | sleep (double time) |
interface to threads that should be portable.
As usual, other thread systems are available but they are as far as we know simply too big and dependent.
| int Threads::getNrProcessors | ( | ) |
Fetches number of processors from operating system, unless: DTECT_USE_MULTIPROC is set to 'n' or 'N' The user settings contain a 'Nr Processors' entry.
| void Threads::sleep | ( | double | time | ) |
Causes the current thread to sleep Time in seconds
1.7.1