xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::realTime::BlockSignalsGuard Class Reference

This class sets the scheduling priority of the calling thread to the maximum real-time priority for the duration of its lifetime. More...

#include <realTime/BlockSignalsGuard.hpp>

Public Member Functions

 BlockSignalsGuard ()
 Constructor.
 
 ~BlockSignalsGuard ()
 Destructor.
 

Detailed Description

This class sets the scheduling priority of the calling thread to the maximum real-time priority for the duration of its lifetime.

Note
On operating systems that do not use signals, this class is a no-op.

Constructor & Destructor Documentation

◆ BlockSignalsGuard()

xentara::utils::realTime::BlockSignalsGuard::BlockSignalsGuard ( )

Constructor.

The constructor blocks all signals for the current thread.

Note
On operating systems that do not use signals, this function is a no-op.

◆ ~BlockSignalsGuard()

xentara::utils::realTime::BlockSignalsGuard::~BlockSignalsGuard ( )

Destructor.

The destructor resets the signal mask to what it was before the constructor was called.

Note
On operating systems that do not use signals, this function is a no-op.