From 060aad1d873414d4acec2fdcdcdd56529abe4d7c Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Thu, 24 Aug 2017 11:34:00 +0200 Subject: Refactor actual encoder invokation - move two vars to base class - handle thread sleep in base class - add missing lock guard for exit var --- src/odr-padenc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/odr-padenc.h') diff --git a/src/odr-padenc.h b/src/odr-padenc.h index 0158f55..a2c84a4 100644 --- a/src/odr-padenc.h +++ b/src/odr-padenc.h @@ -80,7 +80,9 @@ protected: DLSEncoder dls_encoder; SLSEncoder sls_encoder; SlideStore slides; + int curr_dls_file; int output_fd; + steady_clock::time_point run_timeline; std::mutex status_mutex; bool do_exit; @@ -90,7 +92,9 @@ protected: pad_packetizer(PADPacketizer(options.padlen)), dls_encoder(DLSEncoder(&pad_packetizer)), sls_encoder(SLSEncoder(&pad_packetizer)), + curr_dls_file(0), output_fd(-1), + run_timeline(steady_clock::now()), do_exit(false) {} -- cgit v1.2.3