MUTEX(9): Use priority inheritance protocol

This commit is contained in:
Sebastian Huber
2013-10-24 16:39:51 +02:00
parent e8592316b3
commit 761956d45c

View File

@@ -135,10 +135,9 @@ mtx_init(struct mtx *m, const char *name, const char *type, int opts)
{ {
struct lock_class *class; struct lock_class *class;
int i; int i;
rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_id id = RTEMS_ID_NONE; 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_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY;
rtems_attribute attr = RTEMS_LOCAL | RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE;
if ((opts & MTX_RECURSE) != 0 ) if ((opts & MTX_RECURSE) != 0 )
{ {