summaryrefslogtreecommitdiff
path: root/debuggerd/handler/debuggerd_handler.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2017-04-18 14:09:45 -0700
committerMark Salyzyn <salyzyn@google.com>2017-04-20 08:24:38 -0700
commit3c501b50b41086cde59a6811f4aa5cd3e736f5f2 (patch)
treef965acd1a431bce77613286cd9a6dd33ed1190a3 /debuggerd/handler/debuggerd_handler.cpp
parente32517d7739f32014695d3082da50ab0186460c3 (diff)
logd: reader/writer element locks
Switch to a reader writer lock for the Element List lock. Also setup for a reader writer lock for the Times list, but continue to use a mutex where rdlock() and wrlock() are the same implementation for now. This should improve general reader performance and prevent blocking of other reader operations or exit by a single hung logd.reader.per thread. For example, a full length logcat of an empty buffer (eg: crash log buffer) will hold a lock while the iterator scans the entire list. Test: gTest liblog-unit-tests, logd-unit-tests, logcat-unit-tests Bug: 37378309 Bug: 37483775 Change-Id: If5723ff4a978e17d828a75321e8f0ba91d4a09e0
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions