diff options
Diffstat (limited to '')
| -rw-r--r-- | src/AsyncEventLoop.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/AsyncEventLoop.hpp b/src/AsyncEventLoop.hpp index 29c2958..5718909 100644 --- a/src/AsyncEventLoop.hpp +++ b/src/AsyncEventLoop.hpp @@ -15,6 +15,7 @@ public: AsyncEventLoop(); ~AsyncEventLoop(); + void wake(); DEFINE_GETTER(getUVLoop, loop) template <typename F> void queueTask(F &&task) { @@ -22,7 +23,7 @@ public: std::lock_guard<std::mutex> lock(tasksQueueMutex); tasksQueue.push(std::forward<F>(task)); } - uv_async_send(&asyncHandle); + wake(); } protected: |
