Branch: Tag:

2014-12-04

2014-12-04 19:26:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Threads: Added inhibition of thread signals.

Some code really doesn't like getting errors thrown (cf code
that uses fatal_on_error()), so add a simple way of delaying
such errors until the critical section is done.

Also makes sure that the thread interrupt signal doesn't get lost.

30:      #define THREAD_FLAG_SIGNAL_MASK 3 /* All of the above. */    + #define THREAD_FLAG_INHIBIT 4 /* Inhibit signals. */ +    /* Debug flags */   #define THREAD_DEBUG_LOOSE 1 /* Thread is not bound to the interpreter. */