diff options
author | Brian Paul <[email protected]> | 2008-08-26 16:35:12 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-08-26 16:35:12 -0600 |
commit | 0bb852fa49e7f9a31036089ea4f5dfbd312a4a3a (patch) | |
tree | 7f93ecd62f156d5c94b176cd7e4f083823051f67 /src/gallium/winsys/drm/intel/dri | |
parent | b5ab3b7dfc42a568a156dec2fa043292014f98a7 (diff) |
gallium: thread wrapper clean-up
In p_thread.h replace _glthread_* functions with new pipe_* functions.
Remove other old cruft.
Diffstat (limited to 'src/gallium/winsys/drm/intel/dri')
-rw-r--r-- | src/gallium/winsys/drm/intel/dri/intel_lock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/winsys/drm/intel/dri/intel_lock.c b/src/gallium/winsys/drm/intel/dri/intel_lock.c index 406284c98fb..18c7bba0d5a 100644 --- a/src/gallium/winsys/drm/intel/dri/intel_lock.c +++ b/src/gallium/winsys/drm/intel/dri/intel_lock.c @@ -27,7 +27,7 @@ #include "main/glheader.h" -#include "glapi/glthread.h" +#include "pipe/p_lthread.h" #include <GL/internal/glcore.h> #include "state_tracker/st_public.h" #include "intel_context.h" @@ -35,7 +35,7 @@ -_glthread_DECLARE_STATIC_MUTEX( lockMutex ); +pipe_static_mutex( lockMutex ); static void @@ -72,7 +72,7 @@ void LOCK_HARDWARE( struct intel_context *intel ) { char __ret = 0; - _glthread_LOCK_MUTEX(lockMutex); + pipe_mutex_lock(lockMutex); assert(!intel->locked); DRM_CAS(intel->driHwLock, intel->hHWContext, @@ -96,7 +96,7 @@ void UNLOCK_HARDWARE( struct intel_context *intel ) DRM_UNLOCK(intel->driFd, intel->driHwLock, intel->hHWContext); - _glthread_UNLOCK_MUTEX(lockMutex); + pipe_mutex_unlock(lockMutex); DBG(LOCK, "%s - unlocked\n", __progname); } |