Class to store the queue for the ThreadPool using a binary heap. More...
#include <ThreadPoolQueue.h>
Public Member Functions | |
| size_t | capacity () const |
| The number of items that can be in the queue. | |
| void | changePriorities (const std::vector< std::pair< uint64_t, int8_t > > &list) |
| Change the prioirties of items in the queue. | |
| bool | empty () const |
| Check if the queue is empty. | |
| void | insert (size_t N, const ThreadPoolID *ids) |
| Add the given items to the queue. | |
| ThreadPoolHeapQueue & | operator= (const ThreadPoolHeapQueue &)=delete |
| Asignment operator. | |
| ThreadPoolID | pop () |
| Get the next item to process. | |
| size_t | size () const |
| The number of items that are in the queue. | |
| ThreadPoolHeapQueue ()=delete | |
| Empty constructor. | |
| ThreadPoolHeapQueue (const ThreadPoolHeapQueue &)=delete | |
| Copy constructor. | |
| ThreadPoolHeapQueue (size_t N) | |
| Default constructor. | |
Private Member Functions | |
| void | checkBlocked () |
| void | lock () |
| void | unlock () |
Private Attributes | |
| volatile ThreadPoolID * | d_ids |
| volatile std::atomic_int32_t | d_lock |
| volatile size_t | d_Nb |
| const size_t | d_Nc |
| volatile size_t | d_Nh |
Class to store the queue for the ThreadPool using a binary heap.
Definition at line 77 of file ThreadPoolQueue.h.
|
delete |
Empty constructor.
|
inlineexplicit |
Default constructor.
Definition at line 84 of file ThreadPoolQueue.h.
|
delete |
Copy constructor.
|
inline |
The number of items that can be in the queue.
Definition at line 96 of file ThreadPoolQueue.h.
References d_Nc.
|
inline |
Change the prioirties of items in the queue.
Definition at line 145 of file ThreadPoolQueue.h.
References d_ids, d_Nb, d_Nc, d_Nh, AMP::ThreadPoolID::getLocalID(), lock(), and unlock().
|
inlineprivate |
Definition at line 192 of file ThreadPoolQueue.h.
References d_ids, d_Nb, d_Nc, d_Nh, and AMP::test().
Referenced by pop().
|
inline |
|
inline |
|
inlineprivate |
Definition at line 180 of file ThreadPoolQueue.h.
References d_lock.
Referenced by changePriorities(), insert(), and pop().
|
delete |
Asignment operator.
|
inline |
Get the next item to process.
Definition at line 105 of file ThreadPoolQueue.h.
References checkBlocked(), d_ids, d_Nh, lock(), and unlock().
|
inline |
The number of items that are in the queue.
Definition at line 99 of file ThreadPoolQueue.h.
Referenced by empty().
|
inlineprivate |
Definition at line 187 of file ThreadPoolQueue.h.
References d_lock.
Referenced by changePriorities(), insert(), and pop().
|
private |
Definition at line 215 of file ThreadPoolQueue.h.
Referenced by changePriorities(), checkBlocked(), insert(), and pop().
|
private |
Definition at line 211 of file ThreadPoolQueue.h.
|
private |
Definition at line 214 of file ThreadPoolQueue.h.
Referenced by changePriorities(), checkBlocked(), insert(), and size().
|
private |
Definition at line 212 of file ThreadPoolQueue.h.
Referenced by capacity(), changePriorities(), checkBlocked(), and insert().
|
private |
Definition at line 213 of file ThreadPoolQueue.h.
Referenced by changePriorities(), checkBlocked(), insert(), pop(), and size().
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:42. Comments on this page |