scrcpy/app/src/util
Romain Vimont 85edba20e7 Enforce deadline reached on timeout
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 682a691173
2022-02-16 18:29:30 +01:00
..
acksync.c Add acksync helper to wait for acks 2021-11-23 21:15:05 +01:00
acksync.h Wait SET_CLIPBOARD ack before Ctrl+v via HID 2021-11-24 09:41:21 +01:00
buffer_util.h Rename buffer util functions with sc_ prefix 2022-02-12 09:12:46 +01:00
cbuf.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
file.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
file.h Improve file API 2021-11-12 22:44:37 +01:00
intmap.c Use static maps to convert input events 2021-11-29 21:15:07 +01:00
intmap.h Use static maps to convert input events 2021-11-29 21:15:07 +01:00
intr.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
intr.h Rename SC_INVALID_SOCKET to SC_SOCKET_NONE 2021-11-14 01:22:22 +01:00
log.c Add generic LOG() macro with level parameter 2022-02-09 09:53:11 +01:00
log.h Add generic LOG() macro with level parameter 2022-02-09 09:53:11 +01:00
net.c Remove LOGC() 2022-02-09 09:52:15 +01:00
net.h Add function to parse IPv4 addresses 2021-11-21 22:37:37 +01:00
net_intr.c Rename SC_INVALID_SOCKET to SC_SOCKET_NONE 2021-11-14 01:22:22 +01:00
net_intr.h Add interruptor utilities 2021-11-13 22:54:18 +01:00
process.c Rename scrcpy threads 2021-12-09 21:32:11 +01:00
process.h Move SC_PRIsizet to compat.h 2022-02-09 09:53:19 +01:00
process_intr.c Check process success locally for adb commands 2021-11-25 22:22:34 +01:00
process_intr.h Check process success locally for adb commands 2021-11-25 22:22:34 +01:00
queue.h Rename queue to sc_queue 2021-07-14 00:35:10 +02:00
str.c Remove confusing sc_str_truncate() 2022-02-06 14:39:51 +01:00
str.h Remove confusing sc_str_truncate() 2022-02-06 14:39:51 +01:00
strbuf.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
strbuf.h Add string buffer util 2021-11-11 14:55:52 +01:00
term.c Add util function to get terminal size 2021-11-11 15:22:39 +01:00
term.h Add util function to get terminal size 2021-11-11 15:22:39 +01:00
thread.c Enforce deadline reached on timeout 2022-02-16 18:29:30 +01:00
thread.h Replace delay by deadline in timedwait() 2021-07-14 14:22:32 +02:00
tick.c Use timers with microsecond precision 2021-12-08 23:45:45 +01:00
tick.h Use timers with microsecond precision 2021-12-08 23:45:45 +01:00