if(pthread_tryjoin_np(threadinfo_p->pthread,NULL)){// TODO: check this pthread_tryjoin_np() on error returnings
error("Debug3: thread_gc(): Thread #%i is alive too long: %lu <= %lu (started at %lu)",thread_num,threadinfo_p->expiretime,tm,threadinfo_p->starttime);
returnthread_info_unlock(ETIME);
...
...
@@ -396,7 +396,7 @@ int thread_gc(ctx_t *ctx_p) {
}
#ifndef VERYPARANOID
if(threadinfo_p->state!=STATE_TERM){
if(threadinfo_p->state!=STATE_TERM){
debug(3,"Thread #%i is busy, skipping (#0).",thread_num);
continue;
}
...
...
@@ -406,9 +406,9 @@ int thread_gc(ctx_t *ctx_p) {
debug(3,"Trying to join thread #%i: %p",thread_num,threadinfo_p->pthread);