Change the type of tg_joinlock, mm_lock and md_lock from sem_t to mutex_t

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-10-30 21:28:33 +08:00
committed by Petro Karashchenko
parent 18266c1012
commit e08c296a8e
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -35,6 +35,7 @@
#include <fcntl.h>
#include <nuttx/arch.h>
#include <nuttx/mutex.h>
#include <nuttx/kmalloc.h>
#include <nuttx/signal.h>
#include <nuttx/mm/iob.h>
@@ -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 */