Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::packet::ConcurrentQueue Class Reference

Concurrent blocking packet queue. More...

#include <concurrent_queue.h>

Inheritance diagram for roc::packet::ConcurrentQueue:
Collaboration diagram for roc::packet::ConcurrentQueue:

Public Member Functions

virtual PacketPtr read ()
 Read next packet. More...
 
virtual void write (const PacketPtr &packet)
 Add packet to the queue. More...
 

Detailed Description

Concurrent blocking packet queue.

Definition at line 27 of file concurrent_queue.h.

Member Function Documentation

virtual PacketPtr roc::packet::ConcurrentQueue::read ( )
virtual

Read next packet.

Remarks
Blocks until the queue becomes non-empty and returns the first packet from the queue.

Implements roc::packet::IReader.

virtual void roc::packet::ConcurrentQueue::write ( const PacketPtr packet)
virtual

Add packet to the queue.

Remarks
Adds packet to the end of the queue.

Implements roc::packet::IWriter.


The documentation for this class was generated from the following file: