◆ read()
template<typename T , size_t Capacity>
Read a message from the queue. This function will block until the message being read is completed by the writing thread.
- Returns
- A scoped read operation which can be dereferenced to access the message value.
◆ read_finish()
template<typename T , size_t Capacity>
Finish a read from the message queue. This function is wait-free.
- Parameters
-
◆ read_start()
template<typename T , size_t Capacity>
Start a read from the message queue. This function will block until the message being read is completed by the writing thread. Every read_start() must be accompanied by a read_finish().
- Returns
- The index of the message.
◆ size()
template<typename T , size_t Capacity>
Return the number of items in the message queue. For the consumer this may show less items in the queue then there really are.
◆ write()
template<typename T , size_t Capacity>
Write a message into the queue. This function is wait-free when the queue is not full().
- Returns
- A scoped write operation which can be dereferenced to access the message value.
◆ write_finish()
template<typename T , size_t Capacity>
Finish the write of a message. This function is wait-free.
- Parameters
-
◆ write_start()
template<typename T , size_t Capacity>
Start a write into the message queue.
This function is wait-free when the queue is not full(). Every write_start() must be accompanied by a write_finish().
- Parameters
-
| CounterTag | counter to increment when write is contended |
- Returns
- The index of the message.
The documentation for this class was generated from the following file: