Skip to content

Commit

Permalink
update uv source
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Oct 4, 2024
1 parent 416fa06 commit a8251b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/emnapi/src/uv/threadpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions packages/emnapi/src/uv/uv-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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--; \
Expand All @@ -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)

Expand Down

0 comments on commit a8251b4

Please sign in to comment.