TestEventNotifier is working now

This commit is contained in:
Neeflix
2018-07-11 22:17:49 +02:00
parent 8b9ec68662
commit 9e3231f037
4 changed files with 32 additions and 16 deletions

View File

@@ -14,13 +14,12 @@
namespace Input
{
EventNotifier::EventNotifier() :
is_running(true)
EventNotifier::EventNotifier(IBlockingQueue<Event>* queue) :
is_running(true),
event_queue(queue)
{
this->notify_thread = std::thread(&EventNotifier::notify, this);
this->event_queue = new BlockingQueue<Event>();
CLOG(INFO, INPUT_LOGGER) << "Created EventNotifier and started thread";
}