summaryrefslogtreecommitdiffstats
path: root/src/server/RunContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/RunContext.cpp')
-rw-r--r--src/server/RunContext.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/server/RunContext.cpp b/src/server/RunContext.cpp
index 1ab73605..81b59552 100644
--- a/src/server/RunContext.cpp
+++ b/src/server/RunContext.cpp
@@ -75,9 +75,6 @@ RunContext::RunContext(const RunContext& copy)
, _realtime(copy._realtime)
{}
-RunContext::~RunContext()
-{}
-
bool
RunContext::must_notify(const PortImpl* port) const
{
@@ -159,6 +156,17 @@ RunContext::set_priority(int priority)
}
void
+RunContext::join()
+{
+ if (_thread) {
+ if (_thread->joinable()) {
+ _thread->join();
+ }
+ delete _thread;
+ }
+}
+
+void
RunContext::run()
{
while (_engine.wait_for_tasks()) {