|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Threading utilities (thread pools, worker pools, timed event queues) and synchronization helpers. More...
Files | |
| file | thread_pool.H |
| A modern, efficient thread pool for parallel task execution. | |
| file | timeoutQueue.H |
| Priority queue for scheduling timed events. | |
| file | useCondVar.H |
| Wrapper class for POSIX condition variables. | |
| file | useMutex.H |
| RAII-style wrapper for POSIX mutexes. | |
| file | worker_pool.H |
| General-purpose worker thread pool for parallel task execution. | |
Classes | |
| class | UseCondVar |
| Wrapper class for POSIX condition variables. More... | |
| class | UseMutex |
| RAII-style mutex lock guard. More... | |
Functions | |
| UseCondVar::UseCondVar (pthread_cond_t *c, pthread_mutex_t *m) | |
| Construct wrapper for condition variable and mutex. | |
Threading utilities (thread pools, worker pools, timed event queues) and synchronization helpers.
This module groups Aleph-w facilities related to concurrency and thread-based execution.
It covers:
std::future.void* work items.See thread_pool.H and the runnable example thread_pool_example.cc.
Typical usage pattern:
See timeoutQueue.H and the runnable example timeoutQueue_example.C.
ThreadPool::enqueue()), but always check the specific header documentation.
|
inline |
Construct wrapper for condition variable and mutex.
| c | Pointer to initialized condition variable |
| m | Pointer to initialized mutex (must be held when waiting) |
| None |
Definition at line 122 of file useCondVar.H.
References UseCondVar::cond, and UseCondVar::mutex.