mirror of https://github.com/Genymobile/scrcpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85edba20e7
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
|
3 years ago | |
---|---|---|
.. | ||
acksync.c | 3 years ago | |
acksync.h | 3 years ago | |
buffer_util.h | 3 years ago | |
cbuf.h | 4 years ago | |
file.c | 3 years ago | |
file.h | 3 years ago | |
intmap.c | 3 years ago | |
intmap.h | 3 years ago | |
intr.c | 3 years ago | |
intr.h | 3 years ago | |
log.c | 3 years ago | |
log.h | 3 years ago | |
net.c | 3 years ago | |
net.h | 3 years ago | |
net_intr.c | 3 years ago | |
net_intr.h | 3 years ago | |
process.c | 3 years ago | |
process.h | 3 years ago | |
process_intr.c | 3 years ago | |
process_intr.h | 3 years ago | |
queue.h | 3 years ago | |
str.c | 3 years ago | |
str.h | 3 years ago | |
strbuf.c | 3 years ago | |
strbuf.h | 3 years ago | |
term.c | 3 years ago | |
term.h | 3 years ago | |
thread.c | 3 years ago | |
thread.h | 3 years ago | |
tick.c | 3 years ago | |
tick.h | 3 years ago |