Resource Tuner
Loading...
Searching...
No Matches
PulseMonitor Class Reference

Responsible for checking if all clients are alive after a certain time interval. More...

#include <PulseMonitor.h>

Public Member Functions

ErrCode startPulseMonitorDaemon ()
 Starts the Pulse Monitor.
 

Detailed Description

Responsible for checking if all clients are alive after a certain time interval.

It spawns a background thread which lists all alive processes in the system and compares them with the client list. If a clientPID doesn't exist in the system, it is cleaned up.

Definition at line 47 of file PulseMonitor.h.

Member Function Documentation

◆ startPulseMonitorDaemon()

ErrCode PulseMonitor::startPulseMonitorDaemon ( )

Starts the Pulse Monitor.

To start the pulse monitor a recurring timer is created by using a thread from the Thread Pool. This Thread will wake up periodically and check for dead clients and if found add them to the garbage collector queue.

Returns
ErrCode:
  • RC_SUCCESS If the Pulse Monitor is successfully started
  • Enum Code indicating error: Otherwise.

The documentation for this class was generated from the following file: