egl: Kill macro _EGL_DECLARE_MUTEX
authorChad Versace <chad.versace@linux.intel.com>
Fri, 11 Oct 2013 19:50:21 +0000 (12:50 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 26 Nov 2013 20:50:30 +0000 (12:50 -0800)
commit97851145bc74f4bda93dff4e6bb3cbc4789ab23a
tree7c63852580920a597025fc98e219737733c376cf
parent3c58d4c700bc1d0a0d56c26645e900201b7f249e
egl: Kill macro _EGL_DECLARE_MUTEX

Replace all occurences of the macro with its expansion.

It seems that the macro intended to provide cross-platform static mutex
intialization. However, it had the same definition in all pre-processor
paths:
    #define _EGL_DECLARE_MUTEX(m) _EGLMutex m = _EGL_MUTEX_INITIALIZER

Therefore this abstraction obscured rather than helped.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/egl/main/eglcurrent.c
src/egl/main/egldriver.c
src/egl/main/eglglobals.c
src/egl/main/eglmutex.h
src/egl/main/eglscreen.c