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

@@ -137,8 +137,7 @@ mtx_init(struct mtx *m, const char *name, const char *type, int opts)
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_attribute attr = RTEMS_LOCAL | RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY;
if ((opts & MTX_RECURSE) != 0 )
{