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