aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-22 20:11:30 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-22 20:11:30 +0530
commit1f018902a8e1d1138c9a56106bce7aa7982a247b (patch)
tree38a9bb7abaaf35730acc5bcb0decf2e80809eb21 /src
parent0d728071e3287a71ce7928640e63c19f4d0ab00f (diff)
downloadnull-browser-1f018902a8e1d1138c9a56106bce7aa7982a247b.tar.gz
null-browser-1f018902a8e1d1138c9a56106bce7aa7982a247b.zip
Experiment with dmenu
Diffstat (limited to '')
-rw-r--r--src/AsyncEventLoop.cpp9
1 files changed, 5 insertions, 4 deletions
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() {