xentara-utils v2.0.4
The Xentara Utility 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 <xentara/utils/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.