RENEWLab  1.1.0
RENEW project
Sounder::RecorderThread Class Reference

#include <recorder_thread.h>

Collaboration diagram for Sounder::RecorderThread:

Public Member Functions

 RecorderThread (Config *in_cfg, size_t thread_id, int core, size_t queue_size, size_t antenna_offset, size_t num_antennas, bool wait_signal=true)
 
 ~RecorderThread ()
 
void Start (void)
 
void Stop (void)
 
bool DispatchWork (Event_data event)
 

Private Member Functions

void DoRecording (void)
 
void HandleEvent (Event_data event)
 
void Finalize ()
 

Private Attributes

moodycamel::ConcurrentQueue< Event_dataevent_queue_
 
moodycamel::ProducerToken producer_token_
 
RecorderWorker worker_
 
std::thread thread_
 
size_t id_
 
size_t packet_data_length_
 
int core_alloc_
 
bool wait_signal_
 
std::mutex sync_
 
std::condition_variable condition_
 
bool running_
 

Constructor & Destructor Documentation

◆ RecorderThread()

Sounder::RecorderThread::RecorderThread ( Config in_cfg,
size_t  thread_id,
int  core,
size_t  queue_size,
size_t  antenna_offset,
size_t  num_antennas,
bool  wait_signal = true 
)
Here is the call graph for this function:

◆ ~RecorderThread()

Sounder::RecorderThread::~RecorderThread ( )
Here is the call graph for this function:

Member Function Documentation

◆ DispatchWork()

bool Sounder::RecorderThread::DispatchWork ( Event_data  event)
Here is the caller graph for this function:

◆ DoRecording()

void Sounder::RecorderThread::DoRecording ( void  )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Finalize()

void Sounder::RecorderThread::Finalize ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleEvent()

void Sounder::RecorderThread::HandleEvent ( Event_data  event)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Start()

void Sounder::RecorderThread::Start ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Stop()

void Sounder::RecorderThread::Stop ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ condition_

std::condition_variable Sounder::RecorderThread::condition_
private

◆ core_alloc_

int Sounder::RecorderThread::core_alloc_
private

◆ event_queue_

moodycamel::ConcurrentQueue<Event_data> Sounder::RecorderThread::event_queue_
private

◆ id_

size_t Sounder::RecorderThread::id_
private

◆ packet_data_length_

size_t Sounder::RecorderThread::packet_data_length_
private

◆ producer_token_

moodycamel::ProducerToken Sounder::RecorderThread::producer_token_
private

◆ running_

bool Sounder::RecorderThread::running_
private

◆ sync_

std::mutex Sounder::RecorderThread::sync_
private

◆ thread_

std::thread Sounder::RecorderThread::thread_
private

◆ wait_signal_

bool Sounder::RecorderThread::wait_signal_
private

◆ worker_

RecorderWorker Sounder::RecorderThread::worker_
private

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