Fixed build for windows
This commit is contained in:
parent
89fd735919
commit
96d2ca28a8
@ -3,9 +3,9 @@
|
||||
#include <condition_variable>
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
#include "src/log/LogUtils.h"
|
||||
#include <src/misc/sassert.h>
|
||||
#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<event::EventEntry> &entry) {
|
||||
bool EventExecutor::schedule(const std::shared_ptr<ts::event::EventEntry> &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<event::EventEntry> &entry) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EventExecutor::cancel(const std::shared_ptr<event::EventEntry> &entry) {
|
||||
bool EventExecutor::cancel(const std::shared_ptr<ts::event::EventEntry> &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<std::mutex> &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, [&] {
|
||||
|
Loading…
Reference in New Issue
Block a user