Typedef realtime_tools::LockFreeSPSCQueue

Typedef Documentation

template<class DataType, std::size_t Capacity = 0>
using realtime_tools::LockFreeSPSCQueue = std::conditional_t<Capacity == 0, LockFreeQueueBase<DataType, boost::lockfree::spsc_queue<DataType>>, LockFreeQueueBase<DataType, boost::lockfree::spsc_queue<DataType, boost::lockfree::capacity<Capacity>>>>

Lock-free Single Producer Single Consumer Queue.

Template Parameters:
  • DataType – Type of the data to be stored in the queue

  • Capacity – Capacity of the queue