1#ifndef DEADLINE_SUPERVISION_H
2#define DEADLINE_SUPERVISION_H
5#include <condition_variable>
8#include "./elementary_supervision.h"
22 const std::chrono::milliseconds cMinDeadline;
23 const std::chrono::milliseconds cMaxDeadline;
25 std::thread mDeadlineThread;
26 bool mTargetIsReached;
28 std::condition_variable mDeadlineCv;
29 std::chrono::time_point<std::chrono::steady_clock> mTimeReference;
31 void deadlineWorker();
39 std::chrono::milliseconds minDeadline,
40 std::chrono::milliseconds maxDeadline);
Supervision method to check an entity aliveness via the source and target checkpoints.
Definition: deadline_supervision.h:18
void ReportTargetCheckpoint()
Report the occurrence of the target checkpoint.
Definition: deadline_supervision.cpp:74
void ReportSourceCheckpoint()
Report the occurrence of the source checkpoint.
Definition: deadline_supervision.cpp:55
An abstract class the enables a supervision method to report its elementary supervion status.
Definition: elementary_supervision.h:26
TypeOfSupervision
Supervision algorithm type.
Definition: recovery_action.h:14