Treelite
|
Lock-free single-producer-single-consumer queue for each thread. More...
#include <spsc_queue.h>
Public Member Functions | |
void | Push (const T &input) |
bool | Pop (T *output, uint32_t spin_count=300000) |
void | SignalForKill () |
Signal to terminate the worker. | |
Protected Types | |
typedef char | cache_line_pad_t[kL1CacheBytes] |
Protected Member Functions | |
bool | Enqueue (const T &input) |
Static Protected Attributes | |
static constexpr const int | kRingSize = 2 |
Lock-free single-producer-single-consumer queue for each thread.
Definition at line 24 of file spsc_queue.h.