mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
c/main: Document cond var loop
This commit is contained in:
parent
bbda2bac48
commit
2300e4fa57
|
@ -540,7 +540,11 @@ run_vblank_event_thread(void *ptr)
|
|||
// Wait to be woken up.
|
||||
os_thread_helper_wait_locked(&cts->vblank.event_thread);
|
||||
|
||||
// Check if we should stop.
|
||||
/*
|
||||
* Loop back to the top to check if we should stop,
|
||||
* also handles spurious wakeups by re-checking the
|
||||
* condition in the if case. Essentially two loops.
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue