next up previous contents index
Next: 27.3.41 pthread_kill: send a Up: 27.3 POSIX Threads Reference Previous: 27.3.39 pthread_setschedparam: Set the

27.3.40 pthread_sigmask: examine and change blocked signals

 

SYNOPSIS

#include <oskit/threads/pthread.h>
#include <signal.h>

int pthread_sigmask(int how, const sigset_t *set, [out] sigset_t *oset);

DESCRIPTION

Examine or change the per-thread signal mask. This function operates identically to the POSIX function sigprocmask, but on the current thread.

PARAMETERS

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

Returns zero on success. No errors are reported.

RELATED INFORMATION

pthread_kill sigprocmask



Utah Flux Research Group