diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-22 17:17:15 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-22 18:26:37 +0530 |
| commit | 0d728071e3287a71ce7928640e63c19f4d0ab00f (patch) | |
| tree | d6e9fc90331e690dbc439e7ab8b9983df2d796a6 /src/AsyncEventLoop.cpp | |
| parent | f09f1aa704f06472ec134b40e2f69bf3279c3f06 (diff) | |
| download | null-browser-0d728071e3287a71ce7928640e63c19f4d0ab00f.tar.gz null-browser-0d728071e3287a71ce7928640e63c19f4d0ab00f.zip | |
Build fixes + formatting
Diffstat (limited to '')
| -rw-r--r-- | src/AsyncEventLoop.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/AsyncEventLoop.cpp b/src/AsyncEventLoop.cpp index 360a45e..31be89c 100644 --- a/src/AsyncEventLoop.cpp +++ b/src/AsyncEventLoop.cpp @@ -1,7 +1,9 @@ #include <QtCore> #include <functional> #include <mutex> +#include <queue> #include <thread> +#include <utility> #include <uv.h> #include "AsyncEventLoop.hpp" @@ -63,7 +65,7 @@ AsyncEventLoop::~AsyncEventLoop() { uv_stop(loop); // Close all handles - AsyncEventLoop::closeHandle((uv_handle_t *)&asyncHandle); + AsyncEventLoop::closeHandle(reinterpret_cast<uv_handle_t *>(&asyncHandle)); uv_walk(loop, AsyncEventLoop::closeHandle, nullptr); while (uv_run(loop, UV_RUN_ONCE) != 0) ; @@ -87,7 +89,7 @@ void AsyncEventLoop::asyncHandleCallback(uv_async_t *handle) { runtime->processTasks(); } -void AsyncEventLoop::closeHandle(uv_handle_t *handle, void *arg) { +void AsyncEventLoop::closeHandle(uv_handle_t *handle, void *) { if (!uv_is_closing(handle)) { uv_close(handle, [](uv_handle_t *h) { h->data = nullptr; }); } |
