commit | 4443582702f12bb1965e2c1fc4f41bab2626ecce | [log] [tgz] |
---|---|---|
author | Yuri Lin <yurilin@google.com> | Mon May 03 14:36:15 2021 -0400 |
committer | Yuri Lin <yurilin@google.com> | Mon May 03 14:37:19 2021 -0400 |
tree | ad428197fbca75115fa4d91f81cd315fb40ec05e | |
parent | 94592d369e325eafbcc1a3d242bd7475f4bf2528 [diff] |
Add a lock around mBuffer in Archive. Channel removal was resulting in some concurrent modification exceptions, so this change both adds a lock to synchronize any read/write access to mBuffer and also adds a test to make sure attempted concurrent access works correctly. Test: atest ArchiveTest before and after change Fixes: 186860793 Change-Id: Ic5f15a0fd3de27a44cc755c5d2f8008887c6b5b9