diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-22 20:11:30 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-22 20:11:30 +0530 |
| commit | 1f018902a8e1d1138c9a56106bce7aa7982a247b (patch) | |
| tree | 38a9bb7abaaf35730acc5bcb0decf2e80809eb21 /src/AsyncEventLoop.cpp | |
| parent | 0d728071e3287a71ce7928640e63c19f4d0ab00f (diff) | |
| download | null-browser-1f018902a8e1d1138c9a56106bce7aa7982a247b.tar.gz null-browser-1f018902a8e1d1138c9a56106bce7aa7982a247b.zip | |
Experiment with dmenu
Diffstat (limited to '')
| -rw-r--r-- | src/AsyncEventLoop.cpp | 9 |
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() { |
