From 18b3e4939931c0d2bf779d2e52cb0c90e282ec97 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 23 Mar 2025 16:59:16 +0530 Subject: Fix segfault with evaluate, add keymap accidentally popping wrong value + add demnu config.lua example --- src/AsyncEventLoop.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/AsyncEventLoop.hpp') 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 void queueTask(F &&task) { @@ -22,7 +23,7 @@ public: std::lock_guard lock(tasksQueueMutex); tasksQueue.push(std::forward(task)); } - uv_async_send(&asyncHandle); + wake(); } protected: -- cgit v1.3.1