TimingEvents: Use function pointers instead of std::function
This commit is contained in:
parent
8c241ed8de
commit
11992bde4e
10 changed files with 55 additions and 34 deletions
|
|
@ -18,7 +18,9 @@ Timers::~Timers() = default;
|
|||
void Timers::Initialize()
|
||||
{
|
||||
m_sysclk_event = TimingEvents::CreateTimingEvent(
|
||||
"Timer SysClk Interrupt", 1, 1, std::bind(&Timers::AddSysClkTicks, this, std::placeholders::_1), false);
|
||||
"Timer SysClk Interrupt", 1, 1,
|
||||
[](void* param, TickCount ticks, TickCount ticks_late) { static_cast<Timers*>(param)->AddSysClkTicks(ticks); },
|
||||
this, false);
|
||||
Reset();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue