mirror of
https://github.com/simon987/sist2.git
synced 2025-04-16 00:46:43 +00:00
reset throttle timer for each work item
This commit is contained in:
parent
68252b4e80
commit
9a6e7c7c47
@ -173,6 +173,7 @@ static void *tpool_worker(void *arg) {
|
|||||||
|
|
||||||
if (work != NULL) {
|
if (work != NULL) {
|
||||||
stuck_notified = 0;
|
stuck_notified = 0;
|
||||||
|
throttle_ms = 0;
|
||||||
while(!pool->stop && pool->mem_limit > 0 && _get_total_mem(pool) >= pool->mem_limit) {
|
while(!pool->stop && pool->mem_limit > 0 && _get_total_mem(pool) >= pool->mem_limit) {
|
||||||
if (!stuck_notified && throttle_ms >= 90000) {
|
if (!stuck_notified && throttle_ms >= 90000) {
|
||||||
// notify the pool that this thread is stuck.
|
// notify the pool that this thread is stuck.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user