Fix fps_counter tick type
The type uint32_t is not sufficient to store the result of sc_tick_now(). As a consequence, the FPS counter entered a live loop and caused a lock starvation (deadlock in practice). Refsec871dd3f5
Refs682a691173
This commit is contained in:
parent
ccbe370cc5
commit
2a872c3865
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ display_fps(struct fps_counter *counter) {
|
||||||
|
|
||||||
// must be called with mutex locked
|
// must be called with mutex locked
|
||||||
static void
|
static void
|
||||||
check_interval_expired(struct fps_counter *counter, uint32_t now) {
|
check_interval_expired(struct fps_counter *counter, sc_tick now) {
|
||||||
if (now < counter->next_timestamp) {
|
if (now < counter->next_timestamp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue