aboutsummaryrefslogtreecommitdiff
path: root/src/AsyncEventLoop.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-23 16:59:16 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-23 16:59:34 +0530
commit18b3e4939931c0d2bf779d2e52cb0c90e282ec97 (patch)
treee9afabef77660b8cfcd8a37006c9db38c4bc8aa6 /src/AsyncEventLoop.hpp
parent1f018902a8e1d1138c9a56106bce7aa7982a247b (diff)
downloadnull-browser-18b3e4939931c0d2bf779d2e52cb0c90e282ec97.tar.gz
null-browser-18b3e4939931c0d2bf779d2e52cb0c90e282ec97.zip
Fix segfault with evaluate, add keymap accidentally popping wrong value
+ add demnu config.lua example
Diffstat (limited to 'src/AsyncEventLoop.hpp')
-rw-r--r--src/AsyncEventLoop.hpp3
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: