From 96d2ca28a8f8b7b529821032b76cd1da6bac82cb Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Thu, 4 Jul 2019 18:05:50 +0200 Subject: [PATCH] Fixed build for windows --- src/EventLoop.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/EventLoop.cpp b/src/EventLoop.cpp index e409080..890ebba 100644 --- a/src/EventLoop.cpp +++ b/src/EventLoop.cpp @@ -3,9 +3,9 @@ #include #include #include -#include "src/log/LogUtils.h" -#include -#include "EventLoop.h" +#include "./log/LogUtils.h" +#include "./misc/sassert.h" +#include "./EventLoop.h" using namespace std; using namespace ts::event; @@ -65,7 +65,7 @@ void EventExecutor::shutdown() { this->_shutdown(lock); } -bool EventExecutor::schedule(const std::shared_ptr &entry) { +bool EventExecutor::schedule(const std::shared_ptr &entry) { unique_lock lock(this->lock); if(!entry || entry->_event_ptr) return true; /* already scheduled */ @@ -89,7 +89,7 @@ bool EventExecutor::schedule(const std::shared_ptr &entry) { return true; } -bool EventExecutor::cancel(const std::shared_ptr &entry) { +bool EventExecutor::cancel(const std::shared_ptr &entry) { unique_lock lock(this->lock); if(!entry || !entry->_event_ptr) return false; @@ -158,7 +158,7 @@ void EventExecutor::_reassign_thread_names(std::unique_lock &lock) { } #endif -void EventExecutor::_executor(event::EventExecutor *loop) { +void EventExecutor::_executor(ts::event::EventExecutor *loop) { while(true) { unique_lock lock(loop->lock); loop->condition.wait(lock, [&] {