commit | 695a12758c888fdd53a3e908b8801c7a48a854d9 | [log] [tgz] |
---|---|---|
author | Zim <zezeozue@google.com> | Mon Jun 15 18:14:08 2020 +0100 |
committer | Zim <zezeozue@google.com> | Mon Jun 15 18:14:08 2020 +0100 |
tree | 9ed0c3d659f35dd382f257be63fdf6bf754e6454 | |
parent | adaee9bdbe63b983eff847baea525b8b2a81ca27 [diff] |
Fix wrong initialization order in FAdviser (2) Similar to I9a6ab9bf744c2158fdf14a03c70fe95cf9ad61bc FAdviser declares thread_ before queue_. This can cause a race leading to crash when we start the thread_ (in the initializer list) and the new thread tries to use queue_ before it is initialized. Now, we declare queue_ before thread_ ensuring that queue_ will always be initialized before thread_ runs. Bug: 154416156 Test: m Change-Id: I44770d3ed1a0a38e404e9bd493509105d0f84db0