]> xenbits.xensource.com Git - libvirt.git/commit
util: ensure virMutexInit is not recursive
authorEric Blake <eblake@redhat.com>
Thu, 18 Mar 2010 17:32:16 +0000 (11:32 -0600)
committerJim Meyering <meyering@redhat.com>
Thu, 18 Mar 2010 20:37:32 +0000 (21:37 +0100)
commit336fd879c00b2320066db20dfdfdad2b0489c493
tree0cfc3d171c59a2baaa9151080d474a5c59effc24
parentfc148ca13367082dc49abca8e352b95a7f80b944
util: ensure virMutexInit is not recursive

POSIX states that creation of a mutex with default attributes
is unspecified whether the mutex is recursive or non-recursive.
We specifically want non-recursive (deadlock is desirable in
flushing out coding bugs that used our mutex incorrectly).

* src/util/threads-pthread.c (virMutexInit): Specifically request
non-recursive mutex, rather than relying on unspecified default.
src/util/threads-pthread.c