diff options
author | Chad Versace <[email protected]> | 2013-10-11 12:50:21 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2013-11-26 12:50:30 -0800 |
commit | 97851145bc74f4bda93dff4e6bb3cbc4789ab23a (patch) | |
tree | 7c63852580920a597025fc98e219737733c376cf /src/egl/main/eglmutex.h | |
parent | 3c58d4c700bc1d0a0d56c26645e900201b7f249e (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/egl/main/eglmutex.h')
-rw-r--r-- | src/egl/main/eglmutex.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/egl/main/eglmutex.h b/src/egl/main/eglmutex.h index e46486463b1..1349e9ec78a 100644 --- a/src/egl/main/eglmutex.h +++ b/src/egl/main/eglmutex.h @@ -60,8 +60,6 @@ _eglUnlockMutex(_EGLMutex *m) } #define _EGL_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER -#define _EGL_DECLARE_MUTEX(m) \ - _EGLMutex m = _EGL_MUTEX_INITIALIZER #else @@ -72,8 +70,6 @@ static INLINE void _eglLockMutex(_EGLMutex *m) { (void) m; } static INLINE void _eglUnlockMutex(_EGLMutex *m) { (void) m; } #define _EGL_MUTEX_INITIALIZER 0 -#define _EGL_DECLARE_MUTEX(m) \ - _EGLMutex m = _EGL_MUTEX_INITIALIZER #endif |