if (pthread_equal(that_thread->tid, pthread_self()) && that_thread->thread_func)
{ /* Sanity check */
CtdlLogPrintf(CTDL_EMERG, "Thread system PANIC, a thread is trying to clean up after itself.\n");
- CtdlThreadStopAll();
+ abort();
return;
}
if (num_threads <= 0)
{ /* Sanity check */
CtdlLogPrintf(CTDL_EMERG, "Thread system PANIC, num_threads <= 0 and trying to do Garbage Collection.\n");
- CtdlThreadStopAll();
+ abort();
return;
}
"Thread system WARNING, discrepancy in number of worker threads. Counted %d, should be %d.\n",
workers, num_workers
);
+ abort();
return;
}
}