mesa: switch to c11 mutex functions
Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
@@ -424,7 +424,7 @@ _mesa_reference_program_(struct gl_context *ctx,
|
||||
if (*ptr) {
|
||||
GLboolean deleteFlag;
|
||||
|
||||
/*_glthread_LOCK_MUTEX((*ptr)->Mutex);*/
|
||||
/*mtx_lock(&(*ptr)->Mutex);*/
|
||||
#if 0
|
||||
printf("Program %p ID=%u Target=%s Refcount-- to %d\n",
|
||||
*ptr, (*ptr)->Id,
|
||||
@@ -436,7 +436,7 @@ _mesa_reference_program_(struct gl_context *ctx,
|
||||
(*ptr)->RefCount--;
|
||||
|
||||
deleteFlag = ((*ptr)->RefCount == 0);
|
||||
/*_glthread_UNLOCK_MUTEX((*ptr)->Mutex);*/
|
||||
/*mtx_lock(&(*ptr)->Mutex);*/
|
||||
|
||||
if (deleteFlag) {
|
||||
ASSERT(ctx);
|
||||
@@ -448,7 +448,7 @@ _mesa_reference_program_(struct gl_context *ctx,
|
||||
|
||||
assert(!*ptr);
|
||||
if (prog) {
|
||||
/*_glthread_LOCK_MUTEX(prog->Mutex);*/
|
||||
/*mtx_lock(&prog->Mutex);*/
|
||||
prog->RefCount++;
|
||||
#if 0
|
||||
printf("Program %p ID=%u Target=%s Refcount++ to %d\n",
|
||||
@@ -457,7 +457,7 @@ _mesa_reference_program_(struct gl_context *ctx,
|
||||
(prog->Target == MESA_GEOMETRY_PROGRAM ? "GP" : "FP")),
|
||||
prog->RefCount);
|
||||
#endif
|
||||
/*_glthread_UNLOCK_MUTEX(prog->Mutex);*/
|
||||
/*mtx_unlock(&prog->Mutex);*/
|
||||
}
|
||||
|
||||
*ptr = prog;
|
||||
|
Reference in New Issue
Block a user