Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::pipeline::ReceiverState Class Reference

Receiver pipeline state. Thread-safe. More...

#include <receiver_state.h>

Inheritance diagram for roc::pipeline::ReceiverState:
Collaboration diagram for roc::pipeline::ReceiverState:

Public Member Functions

 ReceiverState ()
 Initialize. More...
 
bool has_pending_packets () const
 Check whether pending packets counter is non-zero. More...
 
void add_pending_packets (int increment)
 Add given number to pending packets counter. More...
 
size_t num_sessions () const
 Get sessions counter. More...
 
void add_sessions (int increment)
 Add given number to sessions counter. More...
 

Detailed Description

Receiver pipeline state. Thread-safe.

Definition at line 24 of file receiver_state.h.

Constructor & Destructor Documentation

◆ ReceiverState()

roc::pipeline::ReceiverState::ReceiverState ( )

Initialize.

Member Function Documentation

◆ add_pending_packets()

void roc::pipeline::ReceiverState::add_pending_packets ( int  increment)

Add given number to pending packets counter.

◆ add_sessions()

void roc::pipeline::ReceiverState::add_sessions ( int  increment)

Add given number to sessions counter.

◆ has_pending_packets()

bool roc::pipeline::ReceiverState::has_pending_packets ( ) const

Check whether pending packets counter is non-zero.

◆ num_sessions()

size_t roc::pipeline::ReceiverState::num_sessions ( ) const

Get sessions counter.


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