Skip to content

Commit

Permalink
squash! fix watchdog performance
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Jan 6, 2025
1 parent 1fe0ec4 commit 95d93ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/mini_racer_extension/mini_racer_extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ static void *v8_watchdog(void *arg)
deadline = deadline_ms(c->timeout);
pthread_mutex_lock(&c->wd.mtx);
for (;;) {
if (c->wd.cancel)
break;
pthread_cond_timedwait(&c->wd.cv, &c->wd.mtx, &deadline);
if (c->wd.cancel)
break;
Expand Down

0 comments on commit 95d93ec

Please sign in to comment.