commit | 372e8f2b19f3a0018b926f226c8ad0ca62320652 | [log] [tgz] |
---|---|---|
author | Ray Essick <essick@google.com> | Mon Feb 11 11:38:31 2019 -0800 |
committer | Ray Essick <essick@google.com> | Mon Feb 11 11:43:46 2019 -0800 |
tree | dcbae95dac10ab55bb8a999f340c0306b30cbe34 | |
parent | 1342d0740e9a7accd48a7c28725ca61ded231ee1 [diff] |
Improve concurrency access for updateMetrics() nuplayer's updateMetrics() referenced an unprotected shared stats buffer. It's a small buffer, so we now make a copy during updateMetrics() [at a point where we are mutexed] instead of putting a mutex on the underlying frequently used construct. Ensure that nuplayer2 has the same protections. Bug: 123256408 Test: race condition