diff options
author | Timothy Arceri <[email protected]> | 2017-03-05 12:32:06 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-07 08:53:05 +1100 |
commit | 628e84a58fdb26c63a705861b92f65f242613321 (patch) | |
tree | bd6084a4dee53a1f180c62f41e790ab490ddf3ee /src/gallium/state_trackers/glx | |
parent | ba72554f3e576c1674d52ab16d8d2edff9398b71 (diff) |
gallium/util: replace pipe_mutex_unlock() with mtx_unlock()
pipe_mutex_unlock() was made unnecessary with fd33a6bcd7f12.
Replaced using:
find ./src -type f -exec sed -i -- \
's:pipe_mutex_unlock(\([^)]*\)):mtx_unlock(\&\1):g' {} \;
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/glx')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index 86bb1c44ba3..398152e09b3 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -204,7 +204,7 @@ xmesa_init_display( Display *display ) while(info) { if (info->display == display) { /* Found it */ - pipe_mutex_unlock(init_mutex); + mtx_unlock(&init_mutex); return &info->mesaDisplay; } info = info->next; @@ -216,7 +216,7 @@ xmesa_init_display( Display *display ) /* allocate mesa display info */ info = (XMesaExtDisplayInfo *) Xmalloc(sizeof(XMesaExtDisplayInfo)); if (info == NULL) { - pipe_mutex_unlock(init_mutex); + mtx_unlock(&init_mutex); return NULL; } info->display = display; @@ -255,7 +255,7 @@ xmesa_init_display( Display *display ) xmdpy->display = NULL; } - pipe_mutex_unlock(init_mutex); + mtx_unlock(&init_mutex); return xmdpy; } @@ -374,7 +374,7 @@ xmesa_get_window_size(Display *dpy, XMesaBuffer b, mtx_lock(&xmdpy->mutex); stat = get_drawable_size(dpy, b->ws.drawable, width, height); - pipe_mutex_unlock(xmdpy->mutex); + mtx_unlock(&xmdpy->mutex); if (!stat) { /* probably querying a window that's recently been destroyed */ |