Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
adaptive_job_queue.h File Reference

Adaptive queue that auto-switches between mutex and lock-free modes. More...

#include <kcenon/thread/core/job_queue.h>
#include <kcenon/thread/lockfree/lockfree_job_queue.h>
#include <kcenon/thread/interfaces/queue_capabilities_interface.h>
#include <atomic>
#include <chrono>
#include <memory>
#include <mutex>
#include <type_traits>
Include dependency graph for adaptive_job_queue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::thread::adaptive_job_queue
 Adaptive queue that switches between mutex and lock-free modes. More...
 
struct  kcenon::thread::adaptive_job_queue::stats
 Statistics about mode switching. More...
 
class  kcenon::thread::adaptive_job_queue::accuracy_guard
 RAII guard that temporarily switches to accuracy mode. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::thread
 Core threading foundation of the thread system library.
 

Detailed Description

Adaptive queue that auto-switches between mutex and lock-free modes.

See also
job_queue For mutex mode
lockfree_job_queue For lock-free mode

Definition in file adaptive_job_queue.h.