Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 372e8f2b authored by Ray Essick's avatar Ray Essick
Browse files

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
parent 1342d074
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment