commit | c12d33dbda4e4b142c8a034a963719d24c74425a | [log] [tgz] |
---|---|---|
author | Quang Luong <qal@google.com> | Thu Mar 26 21:59:17 2020 -0700 |
committer | Quang Luong <qal@google.com> | Mon Mar 30 20:55:14 2020 -0700 |
tree | 7edb6db962e82c772283f60d02c2c781544e61e1 | |
parent | 776f77aa028f52fc08c51da38b502014938850ce [diff] |
[WifiTrackerLib] Make WifiEntry scan result lists thread safe The scan result lists of each WifiEntry is modified by the worker thread, but clients on the main thread may need to iterate on the lists to generate the verbose log. This may result in concurrent modification exceptions, so we need to put locks on these lists. Bug: 150978717 Test: build Change-Id: Ice9f653b0496b20d87470ef0af1eda22a2d2fe9c