commit | b933e2cf539e7c6fc224fb3e450f2fe23914910f | [log] [tgz] |
---|---|---|
author | Ytai Ben-Tsvi <ytai@google.com> | Tue Apr 14 11:51:55 2020 -0700 |
committer | Ytai Ben-Tsvi <ytai@google.com> | Tue Apr 14 18:36:17 2020 -0700 |
tree | b24b6781eb9caaa1df71eb90ee098213acd2459c | |
parent | ced11b60add068e9af896c6db074601010122930 [diff] |
Make SoundTriggerHw2Enforcer thread-safe Since this class may be accessed from two separate execution contexts (forward calls and callbacks), make sure we avoid data races when accessing mModelStates. Fixes: 154002405 Test: Manual verification of sound-trigger functionality. Change-Id: I817a4d1b2861de8bc7ce364e39f36dd07863d307