Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
q-consumer-threads.H File Reference

Queue-based consumer thread pool. More...

#include <thread>
#include <condition_variable>
#include <mutex>
#include <tpl_dynListQueue.H>
#include <ah-errors.H>
Include dependency graph for q-consumer-threads.H:

Go to the source code of this file.

Classes

class  ConsumerQueueEvent< T >
 
class  QueueTheadsPool< T >
 Pool of consumer threads form a queue. More...
 
class  QueueTheadsPool< T >::ConsumerQueueEvent
 

Detailed Description

Queue-based consumer thread pool.

Pool of threads consuming from a shared queue for producer-consumer patterns.

Features

  • Thread-safe queue
  • Configurable pool size
  • Graceful shutdown
See also
worker_pool.H Alternative thread pool
Author
Leandro Rabindranath León

Definition in file q-consumer-threads.H.