OSDN Git Service

fix a dead-lock in eglMakeCurrent
authorMathias Agopian <mathias@google.com>
Fri, 3 Feb 2012 23:24:51 +0000 (15:24 -0800)
committerMathias Agopian <mathias@google.com>
Fri, 3 Feb 2012 23:24:51 +0000 (15:24 -0800)
commita4b2c041828d1074dca3b999407e7dd85568c5aa
tree628fb9c69751ebcf01ce0c479e10f8958c376621
parent6f3114cafe3c099c4edeb0ee5054616b48c01e78
fix a dead-lock in eglMakeCurrent

this was introduced in a recent change. eglMakeCurrent can
end up calling eglDestroyImageKHR via ANativewWindow::disconnect
when the consumer is in the same process.

we make sure we don't hold the lock while this is happening.

Change-Id: Id17fe4fd76eecf5f962cefb9aa32be41fc1b042d
opengl/libs/EGL/egl_display.cpp
opengl/libs/EGL/egl_display.h