From 1f018902a8e1d1138c9a56106bce7aa7982a247b Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 22 Mar 2025 20:11:30 +0530 Subject: Experiment with dmenu --- src/AsyncEventLoop.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/AsyncEventLoop.cpp b/src/AsyncEventLoop.cpp index 31be89c..6c9b42d 100644 --- a/src/AsyncEventLoop.cpp +++ b/src/AsyncEventLoop.cpp @@ -41,11 +41,12 @@ void AsyncEventLoop::processTasks() { void AsyncEventLoop::runLoop() { isLoopRunning = true; while (isLoopRunning) { - int result = uv_run(loop, UV_RUN_ONCE); - if (result == 0) - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + /* int _result = */ uv_run(loop, UV_RUN_NOWAIT); + // qDebug() << "Tasks handled:" << result; + // uv_print_active_handles(loop, stdout); + // if (result == 0) + std::this_thread::sleep_for(std::chrono::milliseconds(10)); } - uv_run(loop, UV_RUN_NOWAIT); } AsyncEventLoop::~AsyncEventLoop() { -- cgit v1.3.1