summaryrefslogtreecommitdiff
path: root/src/egl/main/eglapi.h
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-02-17 17:30:44 +0800
committerChia-I Wu <olv@lunarg.com>2010-02-17 20:00:12 +0800
commit655f4654675e601a9482e40d8e50156c965b8934 (patch)
tree3a8c334c011d9fbf5d3c43d73a6996c973a38883 /src/egl/main/eglapi.h
parentdb5ce8b3843a03c6f83a02a79f033d7e74784dd5 (diff)
egl: Always lock a display before using it.
This gives a simple access control to the display. It is potentially slow, but a finer grained mutex can always be used in the future. The benefit of this simple approach is that drivers need not to worry about thread-safety.
Diffstat (limited to 'src/egl/main/eglapi.h')
-rw-r--r--src/egl/main/eglapi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.h b/src/egl/main/eglapi.h
index c3676ec56a..3e2ba8dd41 100644
--- a/src/egl/main/eglapi.h
+++ b/src/egl/main/eglapi.h
@@ -45,6 +45,7 @@ typedef const char *(*QueryString_t)(_EGLDriver *drv, _EGLDisplay *dpy, EGLint n
typedef EGLBoolean (*WaitClient_t)(_EGLDriver *drv, _EGLDisplay *dpy, _EGLContext *ctx);
typedef EGLBoolean (*WaitNative_t)(_EGLDriver *drv, _EGLDisplay *dpy, EGLint engine);
+/* this function may be called from multiple threads at the same time */
typedef _EGLProc (*GetProcAddress_t)(_EGLDriver *drv, const char *procname);