Typedef realtime_tools::LockFreeMPMCQueue

Typedef Documentation

template<class DataType, std::size_t Capacity = 0, bool FixedSize = true>
using realtime_tools::LockFreeMPMCQueue = std::conditional_t<Capacity == 0, LockFreeQueueBase<DataType, boost::lockfree::queue<DataType, boost::lockfree::fixed_sized<FixedSize>>>, LockFreeQueueBase<DataType, boost::lockfree::queue<DataType, boost::lockfree::capacity<Capacity>, boost::lockfree::fixed_sized<FixedSize>>>>

Lock-free Multiple Producer Multiple Consumer Queue.

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

  • Capacity – Capacity of the queue

  • FixedSize – Fixed size of the queue