commit | eadf0d45489a28d0145c538848969ad023fc47ab | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Mon Aug 12 13:28:29 2019 -0700 |
committer | chaviw <chaviw@google.com> | Mon Aug 12 13:28:29 2019 -0700 |
tree | 725da607a35943866d4c389a77d3570f8514ee57 | |
parent | 4f17282e3122838d4581ca2f279386c3a9e1537e [diff] |
Changed mNumLayers to atomic mNumLayers is accessed from multiple threads, binder thread when a layer is created and main thread when a layer is destroyed. The variable should be atomic to ensure it's thread safe. Test: Builds and runs Change-Id: I72962d148dfdeec8e1877b86f93cc53c8c7883a9