HostTiming: Pause the hardware clock on pause.
This commit is contained in:
parent
0fd333a248
commit
fb1d75a788
7 changed files with 23 additions and 1 deletions
|
@ -77,6 +77,9 @@ void CoreTiming::SyncPause(bool is_paused) {
|
|||
return;
|
||||
}
|
||||
Pause(is_paused);
|
||||
if (!is_paused) {
|
||||
pause_event.Set();
|
||||
}
|
||||
event.Set();
|
||||
while (paused_set != is_paused)
|
||||
;
|
||||
|
@ -197,6 +200,9 @@ void CoreTiming::ThreadLoop() {
|
|||
wait_set = false;
|
||||
}
|
||||
paused_set = true;
|
||||
clock->Pause(true);
|
||||
pause_event.Wait();
|
||||
clock->Pause(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue