aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldisplay.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-02-17 17:29:52 +0800
committerChia-I Wu <[email protected]>2010-02-17 20:00:11 +0800
commit99bcb1f06d35a038b9fcf9786938a31b3dba21b7 (patch)
tree26299c916679385cfd333e390654c56a4f0af637 /src/egl/main/egldisplay.c
parentb3bb18062005d3c9ec0f942a5e096e7e38c6f3e1 (diff)
egl: Add a mutex to _EGLDisplay.
A display may be shared by multiple threads. Add a mutex for access control.
Diffstat (limited to 'src/egl/main/egldisplay.c')
-rw-r--r--src/egl/main/egldisplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index d7a8d142929..acf461def06 100644
--- a/src/egl/main/egldisplay.c
+++ b/src/egl/main/egldisplay.c
@@ -55,6 +55,7 @@ _eglNewDisplay(EGLNativeDisplayType nativeDisplay)
{
_EGLDisplay *dpy = (_EGLDisplay *) calloc(1, sizeof(_EGLDisplay));
if (dpy) {
+ _eglInitMutex(&dpy->Mutex);
dpy->NativeDisplay = nativeDisplay;
}
return dpy;