util: add mutex lock in u_debug_memory.c code
authorBrian Paul <brianp@vmware.com>
Thu, 16 Feb 2012 19:25:22 +0000 (12:25 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Feb 2012 14:49:10 +0000 (07:49 -0700)
commit4a72d859b4f8d0444eb7f38606d59d7ddc9ea8fa
tree31b5d3d6b5baa337abcf9206fc6e0813e0a14e0d
parent810584270d5b34f6a130eac06a5529d616d82b0a
util: add mutex lock in u_debug_memory.c code

The linked list of memory allocations was not protected by a mutex.
This lead to sporadic failures with multi-threaded apps.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_debug_memory.c