diff options
author | Stephen Kiazyk <skiazyk@google.com> | 2017-04-05 16:46:49 -0700 |
---|---|---|
committer | Stephen Kiazyk <skiazyk@google.com> | 2017-04-07 23:41:10 +0000 |
commit | 5576a555a14edd8c76addce2cee37b9b9ced2c3f (patch) | |
tree | 9c577e29eddb471dc58fcba0f60c7693d8da17e9 /opengl/tests/gl2_basic/gl2_basic.cpp | |
parent | cde29667e4f93b266f2250b370a53f6eff8c6cbb (diff) |
Avoid a potential race condition on mDisplays
The race could occur when transitioning in/out of VR flinger mode.
It is now avoided by ensuring that the primary |DisplayDevice| is always
created once |mStateLock| is released, and ensuring that all accesses
to the primary |DisplayDevice| are guarded by |mStateLock|.
Bug: 36194616
Test: Normal behavior is unchanged. Explicitly testing the race
condition required instrumenting code with sleep statements.
Change-Id: I1f8fcf23982c311d47267beca8127b6c29562ce5
Diffstat (limited to 'opengl/tests/gl2_basic/gl2_basic.cpp')
0 files changed, 0 insertions, 0 deletions