openMSX
RTSchedulable.hh
Go to the documentation of this file.
1#ifndef RTSCHEDULABLE_HH
2#define RTSCHEDULABLE_HH
3
4#include <cstdint>
5
6namespace openmsx {
7
8class RTScheduler;
9
11{
12public:
13 RTSchedulable(const RTSchedulable&) = delete;
15
16 virtual void executeRT() = 0;
17
18 void scheduleRT(uint64_t delta);
19 bool cancelRT();
20 [[nodiscard]] bool isPendingRT() const;
21
22protected:
23 explicit RTSchedulable(RTScheduler& scheduler);
25
26private:
27 RTScheduler& scheduler;
28};
29
30} // namespace openmsx
31
32#endif
RTSchedulable(const RTSchedulable &)=delete
void scheduleRT(uint64_t delta)
RTSchedulable & operator=(const RTSchedulable &)=delete
virtual void executeRT()=0
This file implemented 3 utility functions:
Definition Autofire.cc:9