fixed some bug
This commit is contained in:
@@ -26,6 +26,8 @@ EventNotifier::~EventNotifier()
|
||||
{
|
||||
is_running = false;
|
||||
|
||||
event_queue.release();
|
||||
|
||||
notify_thread.join();
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,11 @@ public:
|
||||
this->p_queue.pop();
|
||||
return rc;
|
||||
}
|
||||
|
||||
void release()
|
||||
{
|
||||
this->d_condition.notify_one();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user