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
bool isPendingRT() const
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
void scheduleRT(uint64_t delta)
RTSchedulable(const RTSchedulable &)=delete