Skip to content

Commit

Permalink
fix process poller exit
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jul 12, 2023
1 parent 51e0e51 commit 84b466d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tbox/platform/windows/poller_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static tb_void_t tb_poller_process_kill(tb_poller_process_ref_t self)

// stop thread and post it
if (!tb_atomic32_fetch_and_set(&poller->is_stopped, 1))
ReleaseSemaphore(poller->semaphore, 1, tb_null);
ReleaseSemaphore(poller->semaphore, (LONG)poller->threads_count, tb_null);
}
static tb_void_t tb_poller_process_exit(tb_poller_process_ref_t self)
{
Expand Down

0 comments on commit 84b466d

Please sign in to comment.