mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
The value of sc_tick_now() has microsecond precision, but
sc_cond_timedwait() has only millisecond precision.
To guarantee that sc_tick_now() >= deadline when sc_cond_timedwait()
returns due to timeout, round up to the next millisecond.
This avoids to call a non-blocking sc_cond_timedwait() in a loop for no
reason until a target deadline during up to 1 millisecond.
Refs
|
||
|---|---|---|
| .. | ||
| prebuilt-deps | ||
| src | ||
| tests | ||
| meson.build | ||
| scrcpy-windows.manifest | ||
| scrcpy-windows.rc | ||
| scrcpy.1 | ||