summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/mutex.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-17 00:32:51 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-17 00:32:51 +0000
commit2741685d3ad4e78c1c155f77cea34c46c259584e (patch)
treee58f8356ae721328d8dea6deb75909816fff5eee /src/pulsecore/mutex.h
parent61b90a0951ce709bce09cfa44825498224d92120 (diff)
use priority inheritance on mutexes where applicable
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1837 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/mutex.h')
-rw-r--r--src/pulsecore/mutex.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/pulsecore/mutex.h b/src/pulsecore/mutex.h
index b2e34c07..72e88781 100644
--- a/src/pulsecore/mutex.h
+++ b/src/pulsecore/mutex.h
@@ -24,9 +24,17 @@
USA.
***/
+#include <pulsecore/macro.h>
+
typedef struct pa_mutex pa_mutex;
-pa_mutex* pa_mutex_new(int recursive);
+/* Please think twice before enabling priority inheritance. This is no
+ * magic wand! Use it only when the potentially priorized threads are
+ * good candidates for it. Don't use this blindly! Also, note that
+ * only very few operating systems actually implement this, hence this
+ * is merely a hint. */
+pa_mutex* pa_mutex_new(pa_bool_t recursive, pa_bool_t inherit_priority);
+
void pa_mutex_free(pa_mutex *m);
void pa_mutex_lock(pa_mutex *m);
void pa_mutex_unlock(pa_mutex *m);