4 #include "intel_compiler.h"
9 typedef pthread_mutex_t _I965Mutex;
11 static INLINE void _i965InitMutex(_I965Mutex *m)
13 pthread_mutex_init(m, NULL);
17 _i965DestroyMutex(_I965Mutex *m)
19 pthread_mutex_destroy(m);
23 _i965LockMutex(_I965Mutex *m)
25 pthread_mutex_lock(m);
29 _i965UnlockMutex(_I965Mutex *m)
31 pthread_mutex_unlock(m);
34 #define _I965_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
35 #define _I965_DECLARE_MUTEX(m) \
36 _I965Mutex m = _I965_MUTEX_INITIALIZER
40 typedef int _I965Mutex;
41 static INLINE void _i965InitMutex(_I965Mutex *m) { (void) m; }
42 static INLINE void _i965DestroyMutex(_I965Mutex *m) { (void) m; }
43 static INLINE void _i965LockMutex(_I965Mutex *m) { (void) m; }
44 static INLINE void _i965UnlockMutex(_I965Mutex *m) { (void) m; }
46 #define _I965_MUTEX_INITIALIZER 0
47 #define _I965_DECLARE_MUTEX(m) \
48 _I965Mutex m = _I965_MUTEX_INITIALIZER
52 #endif /* _I965_MUTEX_H_ */