fixed some bug

This commit is contained in:
Jonas Zeunert
2018-07-10 20:30:39 +02:00
parent e55d15da24
commit c9e3b9e0c3
4 changed files with 137 additions and 12 deletions

View File

@@ -26,6 +26,8 @@ EventNotifier::~EventNotifier()
{
is_running = false;
event_queue.release();
notify_thread.join();
}

View File

@@ -38,6 +38,11 @@ public:
this->p_queue.pop();
return rc;
}
void release()
{
this->d_condition.notify_one();
}
};