UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
ug_connection Struct Reference
Collaboration diagram for ug_connection:
Collaboration graph

Public Member Functions

 ug_connection (int f, fd_t sef[])
 

Public Attributes

bool connection_lost = false
 
fd_t fd
 
mutex lock
 
int sample_count = 0
 
volatile bool should_exit = false
 
fd_t should_exit_fd [2]
 
thread t
 
double volpeak [CH_COUNT] = {-INFINITY, -INFINITY}
 
double volrms [CH_COUNT] = {0, 0}
 

Detailed Description

Definition at line 47 of file astat.cpp.

Constructor & Destructor Documentation

◆ ug_connection()

ug_connection::ug_connection ( int f,
fd_t sef[] )
inline

Definition at line 49 of file astat.cpp.

49: fd(f), should_exit_fd{sef[0], sef[1]}, t(worker, ref(*this)) {}
static void worker(ug_connection &)
Definition astat.cpp:105
fd_t should_exit_fd[2]
Definition astat.cpp:56
thread t
Definition astat.cpp:57

Member Data Documentation

◆ connection_lost

bool ug_connection::connection_lost = false

Definition at line 59 of file astat.cpp.

Referenced by ug_control_get_volumes(), and worker().

◆ fd

fd_t ug_connection::fd

Definition at line 48 of file astat.cpp.

Referenced by ug_control_connection_done(), ug_control_connection_init(), and worker().

◆ lock

mutex ug_connection::lock

Definition at line 53 of file astat.cpp.

Referenced by parse_and_store(), ug_control_get_volumes(), and worker().

◆ sample_count

int ug_connection::sample_count = 0

Definition at line 52 of file astat.cpp.

Referenced by parse_and_store(), and ug_control_get_volumes().

◆ should_exit

volatile bool ug_connection::should_exit = false

Definition at line 55 of file astat.cpp.

Referenced by ug_control_connection_done(), and worker().

◆ should_exit_fd

fd_t ug_connection::should_exit_fd[2]

Definition at line 56 of file astat.cpp.

Referenced by ug_control_connection_done(), ug_control_connection_init(), and worker().

◆ t

thread ug_connection::t

Definition at line 57 of file astat.cpp.

Referenced by ug_control_connection_done().

◆ volpeak

double ug_connection::volpeak[CH_COUNT] = {-INFINITY, -INFINITY}

Definition at line 50 of file astat.cpp.

50{-INFINITY, -INFINITY};

Referenced by parse_and_store(), and ug_control_get_volumes().

◆ volrms

double ug_connection::volrms[CH_COUNT] = {0, 0}

Definition at line 51 of file astat.cpp.

51{0, 0};

Referenced by parse_and_store(), and ug_control_get_volumes().


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