commit | b12109202a6df5cdf3bcb6c605c79965309994b2 | [log] [tgz] |
---|---|---|
author | Keith Mok <keithmok@google.com> | Fri May 06 19:25:54 2022 +0000 |
committer | Keith Mok <keithmok@google.com> | Sat May 07 05:38:01 2022 +0000 |
tree | ab040205e76b320f8589b833034fa7d04f4c4eb2 | |
parent | 78672d1c2eaa2defc1ac9c84473b35296cbbac9d [diff] |
broadcast-hal: Fix mThread race condition Currently mThread is started in initializer list, but not in constructor, when the thread starts in initializer list, not all class members are init yet (depends on the order of class member declarations). And mThread will use class members. Putting mThread to starts in constructor ensures all class member variables are init before thread starts. Bug: 231737939 Test: build Change-Id: I4033efa9f13c2ece95c4b4f99f8c88b6d4816be1