1
0
Fork 0

initialize varibles in the constructor

This commit is contained in:
Kevin Matz 2022-11-30 09:54:24 -05:00
parent 41530d86c1
commit 874f6482a3
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ Universe::Universe(Source* src)
, source_(src)
, active_data_slots_(1) // start code
, sync_sequence_(0)
, tx_enable_(true)
, tx_worker_(&Universe::tx_loop_, this)
{
destination.type = ACN::SDT::SDT_ADDR_NULL;

View File

@ -129,7 +129,7 @@ private:
std::condition_variable_any tx_request_;
std::mutex tx_control_mutex_;
bool tx_enable_ = true;
bool tx_enable_;
std::thread tx_worker_;
void tx_loop_();
};