|
MADNESS 0.10.1
|

Files | |
| file | thread.cc |
| Implements Dqueue, Thread, ThreadBase and ThreadPool. | |
| file | thread.h |
| Implements Dqueue, Thread, ThreadBase and ThreadPool. | |
| file | thread_info.h |
| Implements thread introspection for Pthreads backend. | |
| file | thread_specific.h |
Reclaimable thread-specific storage (a thread_local you can free). | |
Namespaces | |
| namespace | madness::profiling |
Classes | |
| class | madness::PoolTaskInterface |
| Lowest level task interface. More... | |
| class | madness::PoolTaskNull |
| A no-operation task used for various purposes. More... | |
| class | madness::TaskAttributes |
| Contains attributes of a task. More... | |
| class | madness::TaskThreadEnv |
| Used to pass information about the thread environment to a user's task. More... | |
| class | madness::Thread |
| Simplified thread wrapper to hide pthread complexity. More... | |
| class | madness::ThreadBase |
| Simplified thread wrapper to hide pthread complexity. More... | |
| class | madness::ThreadPool |
| A singleton pool of threads for dynamic execution of tasks. More... | |
| class | madness::ThreadPoolThread |
ThreadPool thread object. More... | |
Functions | |
| void | madness::threadpool_wait_policy (WaitPolicy policy, int sleep_duration_in_microseconds=0) |
|
inline |
Controls how aggressively ThreadPool holds on to the OS threads while waiting for work. Currently useful only for Pthread pool when it's using spinlocks; NOT used for TBB or PaRSEC.
| policy | specifies how to wait for work;
|
| sleep_duration_in_microseconds | if policy==WaitPolicy::Sleep this specifies the duration of sleep, in microseconds |
References madness::ThreadPool::set_wait_policy().