_thread_sig_check_pending(_thread_run);
}
/* Handle any pending signals */
_queue_signals = 1;
dequeue_signals();
_queue_signals = 0;
/*
* Enter a scheduling loop that finds the next thread that is
* ready to run. This loop completes when there are no more threads
*/
thread_sig_add(pthread, sig,
/*has_args*/ 1);
} else {
* We do not want to accidentally
* loose the signal, will try to
* handle it at some later time:
_thread_sigq[i].blocked = 0;
_thread_sigq[i].pending = 1;