summaryrefslogtreecommitdiffstats
path: root/src/server/RunContext.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 19:40:27 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 21:08:24 +0100
commit484665f577267dac4ccd722bc28239a73c6efdb4 (patch)
tree2213a1fc015c1e06e056ec081256b46042d38b87 /src/server/RunContext.cpp
parent6f1277f261a0fed20af10a8ee5804ee694962550 (diff)
downloadingen-484665f577267dac4ccd722bc28239a73c6efdb4.tar.gz
ingen-484665f577267dac4ccd722bc28239a73c6efdb4.tar.bz2
ingen-484665f577267dac4ccd722bc28239a73c6efdb4.zip
Cleanup: Add missing explicit initialisations
Diffstat (limited to 'src/server/RunContext.cpp')
-rw-r--r--src/server/RunContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/RunContext.cpp b/src/server/RunContext.cpp
index 0eabb1ee..68812c02 100644
--- a/src/server/RunContext.cpp
+++ b/src/server/RunContext.cpp
@@ -66,6 +66,7 @@ RunContext::RunContext(Engine& engine,
, _end(0)
, _offset(0)
, _nframes(0)
+ , _rate(0)
, _realtime(true)
{}
@@ -79,6 +80,7 @@ RunContext::RunContext(const RunContext& copy)
, _end(copy._end)
, _offset(copy._offset)
, _nframes(copy._nframes)
+ , _rate(copy._rate)
, _realtime(copy._realtime)
{}
@@ -168,7 +170,7 @@ RunContext::set_priority(int priority)
if (_thread) {
pthread_t pthread = _thread->native_handle();
const int policy = (priority > 0) ? SCHED_FIFO : SCHED_OTHER;
- sched_param sp;
+ sched_param sp{};
sp.sched_priority = (priority > 0) ? priority : 0;
if (pthread_setschedparam(pthread, policy, &sp)) {
_engine.log().error(