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.
scrcpy/app/src/util
Romain Vimont cfa4f7e2f2 Replace locks by atomics in audio player
The audio output thread only reads samples from the buffer, and most of
the time, the audio receiver thread only writes samples to the buffer.
In these cases, using atomics avoids lock contention.

There are still corner cases where the audio receiver thread needs to
"read" samples (and drop them), so lock only in these cases.

PR #4572 <https://github.com/Genymobile/scrcpy/pull/4572>
4 months ago
..
acksync.c Add acksync helper to wait for acks 3 years ago
acksync.h Wait SET_CLIPBOARD ack before Ctrl+v via HID 3 years ago
audiobuf.c Replace locks by atomics in audio player 4 months ago
audiobuf.h Replace locks by atomics in audio player 4 months ago
average.c Add audio player 1 year ago
average.h Add audio player 1 year ago
binary.h Add conversion from float to fixed-point i16 2 years ago
file.c Add OutOfMemory log helper 3 years ago
file.h Improve file API 3 years ago
intmap.c Use static maps to convert input events 3 years ago
intmap.h Use static maps to convert input events 3 years ago
intr.c Add OutOfMemory log helper 3 years ago
intr.h Rename SC_INVALID_SOCKET to SC_SOCKET_NONE 3 years ago
log.c Use `void` for empty function parameter list 8 months ago
log.h Use `void` for empty function parameter list 8 months ago
memory.c Add sc_allocarray() util 1 year ago
memory.h Add sc_allocarray() util 1 year ago
net.c Accept Windows Sockets from version 1.1 1 year ago
net.h Rename net_listen() parameter 2 years ago
net_intr.c Rename net_listen() parameter 2 years ago
net_intr.h Rename net_listen() parameter 2 years ago
process.c Rename scrcpy threads 3 years ago
process.h Move SC_PRIsizet to compat.h 2 years ago
process_intr.c Make intr optional for adb commands 2 years ago
process_intr.h Check process success locally for adb commands 3 years ago
rand.c Add random util 1 year ago
rand.h Add random util 1 year ago
str.c Remove confusing sc_str_truncate() 2 years ago
str.h Use current adb port (if any) for --tcpip 2 years ago
strbuf.c Add OutOfMemory log helper 3 years ago
strbuf.h Add string buffer util 3 years ago
term.c Add util function to get terminal size 3 years ago
term.h Add util function to get terminal size 3 years ago
thread.c Add thread priority API 1 year ago
thread.h Add thread priority API 1 year ago
tick.c Use timers with microsecond precision 3 years ago
tick.h Use timers with microsecond precision 3 years ago
timeout.c Add --time-limit 1 year ago
timeout.h Add --time-limit 1 year ago
vecdeque.h Use `char *` for pointer arithmetic 8 months ago
vector.h Use reallocarray() in sc_vector 1 year ago