mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-25 06:59:52 -05:00
use priority inheritance on mutexes where applicable
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1837 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
61b90a0951
commit
2741685d3a
10 changed files with 48 additions and 15 deletions
|
|
@ -58,7 +58,7 @@ int pa_once_begin(pa_once *control) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
pa_assert_se(m = pa_mutex_new(0));
|
||||
pa_assert_se(m = pa_mutex_new(FALSE, FALSE));
|
||||
pa_mutex_lock(m);
|
||||
|
||||
if (pa_atomic_ptr_cmpxchg(&control->mutex, NULL, m))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue