openMSX
RTSchedulable.cc
Go to the documentation of this file.
1 #include "RTSchedulable.hh"
2 #include "RTScheduler.hh"
3 
4 namespace openmsx {
5 
7  : scheduler(scheduler_)
8 {
9 }
10 
12 {
13  cancelRT();
14 }
15 
16 void RTSchedulable::scheduleRT(uint64_t delta)
17 {
18  cancelRT();
19  scheduler.add(delta, *this);
20 }
21 
23 {
24  return scheduler.remove(*this);
25 }
26 
28 {
29  return scheduler.isPending(*this);
30 }
31 
32 } // namespace openmsx
openmsx::RTSchedulable::isPendingRT
bool isPendingRT() const
Definition: RTSchedulable.cc:27
RTSchedulable.hh
openmsx::RTScheduler
Definition: RTScheduler.hh:20
openmsx::RTSchedulable::scheduleRT
void scheduleRT(uint64_t delta)
Definition: RTSchedulable.cc:16
openmsx::RTSchedulable::cancelRT
bool cancelRT()
Definition: RTSchedulable.cc:22
RTScheduler.hh
openmsx::RTSchedulable::~RTSchedulable
~RTSchedulable()
Definition: RTSchedulable.cc:11
openmsx::RTSchedulable::RTSchedulable
RTSchedulable(const RTSchedulable &)=delete
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5