From df9a23c534f57e6f5b06acfbe6db8b636894e0ad Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Wed, 17 Nov 2021 15:57:15 -0500 Subject: [mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO --- components/cplusplus/cxx_Mutex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/cplusplus') diff --git a/components/cplusplus/cxx_Mutex.cpp b/components/cplusplus/cxx_Mutex.cpp index 97d8fa87e1..da6f80985f 100644 --- a/components/cplusplus/cxx_Mutex.cpp +++ b/components/cplusplus/cxx_Mutex.cpp @@ -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) -- cgit v1.3.1