autotier
Automatic Tiering Fuse Filesystem
|
62 std::lock_guard<std::mutex> lk(
mt_);
71 template<
typename... Args>
73 std::lock_guard<std::mutex> lk(
mt_);
82 std::lock_guard<std::mutex> lk(
mt_);
Single-consumer multiple-producer concurrent FIFO queue.
Definition: concurrentQueue.hpp:35
std::mutex mt_
Mutex for synchronization.
Definition: concurrentQueue.hpp:88
void push(const T &val)
Insert into queue with std::queue<T>::push().
Definition: concurrentQueue.hpp:61
T pop(void)
Pop value from queue. Check empty() first!
Definition: concurrentQueue.hpp:81
void emplace(Args &&...args)
Emplace into queue with std::queue<T>::emplace().
Definition: concurrentQueue.hpp:72
ConcurrentQueue()
Construct a new Concurrent Queue object.
Definition: concurrentQueue.hpp:41
std::queue< T > queue_
Underlying queue to store objects in.
Definition: concurrentQueue.hpp:89
~ConcurrentQueue()=default
Destroy the Concurrent Queue object.
bool empty(void) const
Check if queue is empty. Call this first before trying to pop().
Definition: concurrentQueue.hpp:53