SignalSet.mask

Calls pthread_sigmask() with the set of signals of this instance.

struct SignalSet
typeof(this)
mask
(
int how = SIG_SETMASK
)

Parameters

how int

specifies the operation of pthread_sigmask():

SIG SETMASK

All signals in the set of this instance this set will be blocked, and all other signals will be unblocked.

SIG BLOCK

All signals in the set of this instance this set will be blocked, and the blocking status of all other signals will remain unchanged.

SIG UNBLOCK

All signals in the set of this instance this set will be unblocked, and the blocking status of all other signals will remain unchanged.

Return Value

Type: typeof(this)

previous masked signals set (call its sigmask() method to restore the previous state)

In: how must be SIG_SETMASK, SIG_BLOCK or SIG_UNBLOCK. Note that ensuring this guarantees that pthread_sigmask() will always succeed.

Meta