Fixing timer callbacks.
This commit is contained in:
parent
7172f7575e
commit
7f505a15b7
|
@ -294,7 +294,7 @@ class Win32Timer : public Win32Handle<Timer> {
|
|||
LARGE_INTEGER due_time_li;
|
||||
due_time_li.QuadPart = due_time.count() / 100;
|
||||
auto completion_routine =
|
||||
opt_callback ? reinterpret_cast<PTIMERAPCROUTINE>(CompletionRoutine)
|
||||
callback_ ? reinterpret_cast<PTIMERAPCROUTINE>(CompletionRoutine)
|
||||
: NULL;
|
||||
return SetWaitableTimer(handle_, &due_time_li, 0, completion_routine, this,
|
||||
FALSE)
|
||||
|
@ -309,7 +309,7 @@ class Win32Timer : public Win32Handle<Timer> {
|
|||
LARGE_INTEGER due_time_li;
|
||||
due_time_li.QuadPart = due_time.count() / 100;
|
||||
auto completion_routine =
|
||||
opt_callback ? reinterpret_cast<PTIMERAPCROUTINE>(CompletionRoutine)
|
||||
callback_ ? reinterpret_cast<PTIMERAPCROUTINE>(CompletionRoutine)
|
||||
: NULL;
|
||||
return SetWaitableTimer(handle_, &due_time_li, int32_t(period.count()),
|
||||
completion_routine, this, FALSE)
|
||||
|
|
Loading…
Reference in New Issue