gallium/util: cache symbol lookup with libunwind
[mesa.git] / src / gallium / auxiliary / util / u_debug_memory.c
index d5b0d916cbe0ece2d5f01eb0005d54f3b37bfc54..1ba553cb6e708bef7398f5fd9eb8591c35ec20b0 100644 (file)
@@ -155,7 +155,7 @@ debug_malloc(const char *file, unsigned line, const char *function,
    
    mtx_lock(&list_mutex);
    LIST_ADDTAIL(&hdr->head, &list);
-   pipe_mutex_unlock(list_mutex);
+   mtx_unlock(&list_mutex);
    
    return data_from_header(hdr);
 }
@@ -200,7 +200,7 @@ debug_free(const char *file, unsigned line, const char *function,
 #else
    mtx_lock(&list_mutex);
    LIST_DEL(&hdr->head);
-   pipe_mutex_unlock(list_mutex);
+   mtx_unlock(&list_mutex);
    hdr->magic = 0;
    ftr->magic = 0;
    
@@ -275,7 +275,7 @@ debug_realloc(const char *file, unsigned line, const char *function,
    
    mtx_lock(&list_mutex);
    LIST_REPLACE(&old_hdr->head, &new_hdr->head);
-   pipe_mutex_unlock(list_mutex);
+   mtx_unlock(&list_mutex);
 
    /* copy data */
    new_ptr = data_from_header(new_hdr);