From a8251b49144b368a6bebf30e72cb52786210aa21 Mon Sep 17 00:00:00 2001 From: toyobayashi Date: Fri, 4 Oct 2024 15:51:24 +0800 Subject: [PATCH] update uv source --- packages/emnapi/src/uv/threadpool.c | 2 +- packages/emnapi/src/uv/uv-common.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/emnapi/src/uv/threadpool.c b/packages/emnapi/src/uv/threadpool.c index 37548b18..12c15b85 100644 --- a/packages/emnapi/src/uv/threadpool.c +++ b/packages/emnapi/src/uv/threadpool.c @@ -406,7 +406,7 @@ static void uv__queue_done(struct uv__work* w, int err) { uv_work_t* req; req = container_of(w, uv_work_t, work_req); - uv__req_unregister(req->loop, req); + uv__req_unregister(req->loop); if (req->after_work_cb == NULL) return; diff --git a/packages/emnapi/src/uv/uv-common.h b/packages/emnapi/src/uv/uv-common.h index 1c4c3098..9c5c9c5b 100644 --- a/packages/emnapi/src/uv/uv-common.h +++ b/packages/emnapi/src/uv/uv-common.h @@ -136,13 +136,13 @@ enum { #define uv__has_active_reqs(loop) \ ((loop)->active_reqs.count > 0) -#define uv__req_register(loop, req) \ +#define uv__req_register(loop) \ do { \ (loop)->active_reqs.count++; \ } \ while (0) -#define uv__req_unregister(loop, req) \ +#define uv__req_unregister(loop) \ do { \ assert(uv__has_active_reqs(loop)); \ (loop)->active_reqs.count--; \ @@ -152,7 +152,7 @@ enum { #define uv__req_init(loop, req, typ) \ do { \ UV_REQ_INIT(req, typ); \ - uv__req_register(loop, req); \ + uv__req_register(loop); \ } \ while (0)