commit | dafd01de26cbd3fd930153b262eb16926b80e5f2 | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Tue Jan 11 15:56:21 2022 -0800 |
committer | Lucas Dupin <dupin@google.com> | Tue Jan 11 15:56:21 2022 -0800 |
tree | f67714ec356e90b6d8266f0bdac7a885753b0230 | |
parent | 5cfcf44e13d548b633e71f76e989b0202c5e62da [diff] |
Always destroy RegionSamplingHelper on same thread stopAndDestroy() was being called from the main thread, while registration was happening on the background. This would lead to concurrency bugs because this class is not thread safe. Test: atest RegionSamplingHelperTest Fixes: 201962411 Change-Id: I01290f5931972ad3eb322e7dddc44e002324e405