commit | fe322bdca3bfc2c42ffd477109ff815d45339058 | [log] [tgz] |
---|---|---|
author | Yi Jiang <eejiang@google.com> | Mon May 24 14:54:50 2021 -0700 |
committer | Yi Jiang <eejiang@google.com> | Mon May 24 14:55:01 2021 -0700 |
tree | 62ad00531d8e28ffffec4eeeac034ca951c17d40 | |
parent | e1d070106981adaf5bbb5b34ed3fd920e12140e7 [diff] |
Ensures RotationRequest#mLock can only accquried by main thread. There are 2 locks in RRMS and RotationRequest class. UI thread and main thread both needs to acquire these lock which introduce risk of deadlocking. This change fixes the issue by only letting the main thread get the lock of RotationRequest. Test: presubmit Bug: 188932757 Change-Id: I8fd0beb094356636096155eabeef8c9d24fa0da1