mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO
This commit is contained in:
@@ -13,7 +13,7 @@ using namespace rtthread;
|
||||
|
||||
Mutex::Mutex(const char *name)
|
||||
{
|
||||
rt_mutex_init(&mID, name, RT_IPC_FLAG_FIFO);
|
||||
rt_mutex_init(&mID, name, RT_IPC_FLAG_PRIO);
|
||||
}
|
||||
|
||||
bool Mutex::lock(int32_t millisec)
|
||||
|
||||
Reference in New Issue
Block a user