xentara-utils v2.0.4
The Xentara Utility Library
Loading...
Searching...
No Matches
xentara::utils::realTime::RealTimePriorityGuard 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/RealTimePriorityGuard.hpp>

Public Member Functions

 RealTimePriorityGuard ()
 Constructor.
 
 ~RealTimePriorityGuard ()
 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 non-real-time capable operating systems, this class is a no-op.

Constructor & Destructor Documentation

◆ RealTimePriorityGuard()

xentara::utils::realTime::RealTimePriorityGuard::RealTimePriorityGuard ( )

Constructor.

The constructor sets the priority of the calling thread to the highest allowable real-time priority.

Note
On non-real-time capable operating systems, this function is a no-op.

◆ ~RealTimePriorityGuard()

xentara::utils::realTime::RealTimePriorityGuard::~RealTimePriorityGuard ( )

Destructor.

The destructor resets the priority of the calling thread to the value it had before the constructor was called.

Note
On non-real-time capable operating systems, this function is a no-op.