-
Notifications
You must be signed in to change notification settings - Fork 634
Open
Description
Hi, thanks for this awesome lib.
In thpool.c (line 37), here is static volatile int threads_keepalive;
, why not put threads_keepalive
on struct thpool_
?
Assume the following scenario:
- Create thread pool A (Now
threads_keepalive
is set to 1); - Call
add_task
on thread pool A; - Create thread pool B (Now
threads_keepalive
is set to 1); - Call
add_task
on thread pool B; - Destroy thread pool A (Now
threads_keepalive
is set to 0); - Call
add_task
on thread pool B ; ( task won't execute, because ofthreads_keepalive == 0
)
Metadata
Metadata
Assignees
Labels
No labels