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

This class sets the DMA latency of the system to a certain value for the duration of its lifetime. More...

#include <realTime/DmaLatencyGuard.hpp>

Public Member Functions

 DmaLatencyGuard (std::int32_t latency=0)
 Constructor.
 
 ~DmaLatencyGuard ()=default
 Destructor.
 

Detailed Description

This class sets the DMA latency of the system to a certain value for the duration of its lifetime.

Note
On operating systems that do not support modifying the DMA latency, this class is a no-op.

Constructor & Destructor Documentation

◆ DmaLatencyGuard()

xentara::utils::realTime::DmaLatencyGuard::DmaLatencyGuard ( std::int32_t  latency = 0)

Constructor.

The constructor tells the operating system that this process requires a DMA letency no higher than the given value. The operating system will adjust the actual DMA latency accordingly.

Note
On operating systems that do not support modifying the DMA latency, this function is a no-op.
Parameters
latencyThe desired latency value

◆ ~DmaLatencyGuard()

xentara::utils::realTime::DmaLatencyGuard::~DmaLatencyGuard ( )
default

Destructor.

The destructor tells the operating system that this process no longer requires a special DMA latency. The operating system will adjust the actualö DMA latency accordingly.

Note
On operating systems that do not support modifying the DMA latency, this function is a no-op.