};
// variables & definitions for thread security attributes
-#define MAX_SIG_WAIT_TIME 10000 // times 2 ms thats 20 seconds
-#define SLEEP_CONST 2000 // 2 ms
+#define MAX_SIG_WAIT_TIME 2000 // times 10 ms thats 20 seconds
+#define SLEEP_CONST 10000 // 10 ms
// Hackish, based on glibc's definition in sysdeps/unix/sysv/linux/nptl-signals.h
#define SIGSETXID (__SIGRTMIN + 1)
}
LogWarning("Received EAGAIN from tgkill, wait a bit & try again");
- usleep(SLEEP_CONST); // 2 ms
+ usleep(SLEEP_CONST); // 10 ms
continue;
} else if (ESRCH == err) { // thread already gone - noop
break;
}
}
- usleep(SLEEP_CONST); // 2 ms
+ usleep(SLEEP_CONST); // 10 ms
--time_left;
// break if number of threads in waiting state equals to number of alive tids minus current one
ready_tids = count_alive_tids_with_state(2, current_tids);
if (ready_tids == (int)current_tids.size())
break;
- usleep(SLEEP_CONST); // 2 ms
+ usleep(SLEEP_CONST); // 10 ms
if (i % 500 == 0)
LogWarning("Still waiting for threads to finalize handlers... completed by: " << ready_tids
<< ", all tids managed now: "