diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h index 8fe7e5d1d5c..64b55c07dd2 100644 --- a/include/nuttx/sched.h +++ b/include/nuttx/sched.h @@ -31,12 +31,13 @@ #include #include #include -#include #include #include #include #include +#include +#include #include #include #include @@ -453,7 +454,7 @@ struct task_group_s /* Pthread join Info: */ - sem_t tg_joinlock; /* Mutually exclusive access to join data */ + mutex_t tg_joinlock; /* Mutually exclusive access to join data */ FAR struct join_s *tg_joinhead; /* Head of a list of join data */ FAR struct join_s *tg_jointail; /* Tail of a list of join data */ #endif diff --git a/mm/mm_heap/mm.h b/mm/mm_heap/mm.h index 9e908a38c3a..5cb0205148f 100644 --- a/mm/mm_heap/mm.h +++ b/mm/mm_heap/mm.h @@ -196,7 +196,7 @@ struct mm_heap_s * the following un-named mutex. */ - sem_t mm_lock; + mutex_t mm_lock; /* This is the size of the heap provided to mm */ diff --git a/wireless/ieee802154/mac802154_device.c b/wireless/ieee802154/mac802154_device.c index 926e21bd260..bfa33743183 100644 --- a/wireless/ieee802154/mac802154_device.c +++ b/wireless/ieee802154/mac802154_device.c @@ -35,6 +35,7 @@ #include #include +#include #include #include #include @@ -84,7 +85,7 @@ struct mac802154_chardevice_s { MACHANDLE md_mac; /* Saved binding to the mac layer */ struct mac802154dev_callback_s md_cb; /* Callback information */ - sem_t md_lock; /* Exclusive device access */ + mutex_t md_lock; /* Exclusive device access */ /* Hold a list of events */