Interruptible signal used to request and observe shutdown.

Synopsis

Declared in <util/signalinterrupt.h>

class SignalInterrupt;

Member Functions

Name

Description

SignalInterrupt [constructor]

Constructs the interrupt in the non‐interrupted state, setting up its signalling channel.

operator()

Requests an interrupt; safe to call from a signal handler.

reset

Resets the interrupt back to the non‐interrupted state.

wait

Blocks until an interrupt is requested.

operator bool

Reports whether an interrupt has been requested.

Created with MrDocs