mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-19 04:23:33 +08:00
MUTEX(9): Use priority inheritance protocol
This commit is contained in:
@@ -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 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user