1
0
Fork 0

init variable in constructor, not header

This commit is contained in:
Kevin Matz 2022-11-23 14:27:40 -05:00
parent 9889a8943c
commit 9e94c406fd
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ Universe::Universe(Source* src)
, active_data_slots(1) // start code
, provenance_(std::make_shared<DATA::data_header>())
, source_(src)
, sync_sequence_(0)
, tx_worker_(&Universe::tx_loop_, this)
{
destination.type = ACN::SDT::SDT_ADDR_NULL;

View File

@ -123,7 +123,7 @@ private:
/// > every packet sent on that universe. There is no implied relationship
/// > between the sequence number of an E1.31 Synchronization Packet and
/// > the sequence number of an E1.31 Data Packet on that same universe.
uint8_t sync_sequence_ = 0;
uint8_t sync_sequence_;
std::condition_variable_any tx_request_;
std::mutex tx_control_mutex_;