#include <oskit/threads/pthread.h> #include <signal.h>int pthread_sigmask(int how, const sigset_t *set, [out] sigset_t *oset);
Examine or change the per-thread signal mask. This function operates identically to the POSIX function sigprocmask, but on the current thread.
- how
- One of SIG_BLOCK, SIG_UNBLOCK, or SIG_SETMASK.
- set
- If not a null pointer, a pointer to the new signal set.
- oset
- If not a null pointer, a pointer to where the old signal set should be stored.
Returns zero on success. No errors are reported.
pthread_kill sigprocmask