Method MasterObject()->thread_quanta_exceeded()
- Method thread_quanta_exceeded
void thread_quanta_exceeded(Thread.Thread thread, int ns)
- Description
Function called when a thread has exceeded the thread quanta.
- Parameter thread
Thread that exceeded the thread quanta.
- Parameter ns
Number of nanoseconds that the thread executed before allowing other threads to run.
The default master prints a diagnostic and the thread backtrace to Stdio.stderr.
- Note
This function runs in a signal handler context, and should thus avoid handling of mutexes, etc.
- See also
get_thread_quanta(), set_thread_quanta()