treelite
Classes | Variables
spsc_queue.h File Reference

Lock-free single-producer-single-consumer queue. More...

#include <dmlc/logging.h>
#include <atomic>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <cstdint>
Include dependency graph for spsc_queue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SpscQueue< T >
 Lock-free single-producer-single-consumer queue for each thread. More...
 

Variables

const constexpr int kL1CacheBytes = 64
 

Detailed Description

Lock-free single-producer-single-consumer queue.

Copyright by 2018 Contributors

Author
Yida Wang, Philip Cho

Definition in file spsc_queue.h.