commit | 74e873607b6945db8daf3303f599347f223d0132 | [log] [tgz] |
---|---|---|
author | Ryan Zuklie <rzuklie@google.com> | Thu Feb 23 16:22:39 2023 -0800 |
committer | Ryan Zuklie <rzuklie@google.com> | Fri Mar 03 14:29:57 2023 -0800 |
tree | 13574309d67456b937a4126e6849f0a67b08f14e | |
parent | 572bbe444f949083b1cf30d434445c621c7d1232 [diff] |
Make NetworkTraceHandler thread safe This adds a mutex to guard access to all fields. The lock is taken liberally since calls should rarely (if ever) collide (for example, ConsumeAll is called at most every 100ms and shouldn't overlap). Bug: 246985031 Test: atest libnetworkstats_test Change-Id: I97791a808771bafe789091c9b54cbec0a31d1721