summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/rtems/rtems-bsd-mutex.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-24 16:39:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:18:51 +0100
commit761956d45cc2042b707e75f24cc617fa2f7fe983 (patch)
tree98148d6be5831ccbd4296b1cdf4cf72b7aca67c9 /rtemsbsd/rtems/rtems-bsd-mutex.c
parentAdd TODO for priority values (diff)
downloadrtems-libbsd-761956d45cc2042b707e75f24cc617fa2f7fe983.tar.bz2
MUTEX(9): Use priority inheritance protocol
Diffstat (limited to 'rtemsbsd/rtems/rtems-bsd-mutex.c')
-rw-r--r--rtemsbsd/rtems/rtems-bsd-mutex.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-mutex.c b/rtemsbsd/rtems/rtems-bsd-mutex.c
index 6f7bd064..f5901bd4 100644
--- a/rtemsbsd/rtems/rtems-bsd-mutex.c
+++ b/rtemsbsd/rtems/rtems-bsd-mutex.c
@@ -135,10 +135,9 @@ mtx_init(struct mtx *m, const char *name, const char *type, int opts)
{
struct lock_class *class;
int i;
- rtems_status_code sc = RTEMS_SUCCESSFUL;
- rtems_id id = RTEMS_ID_NONE;
- /* rtems_attribute attr = RTEMS_LOCAL | RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY_CEILING; */
- rtems_attribute attr = RTEMS_LOCAL | RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE;
+ rtems_status_code sc = RTEMS_SUCCESSFUL;
+ rtems_id id = RTEMS_ID_NONE;
+ rtems_attribute attr = RTEMS_LOCAL | RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY;
if ((opts & MTX_RECURSE) != 0 )
{