summaryrefslogtreecommitdiff
path: root/components/cplusplus/cxx_Mutex.cpp
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-11-19 16:50:34 +0800
committerGitHub <[email protected]>2021-11-19 16:50:34 +0800
commit9bbcd1a8b0b5b7a4892690680234054b4d6e0b58 (patch)
tree772a7e2ccbeb401c91c2b6a90503bba5c79fdc30 /components/cplusplus/cxx_Mutex.cpp
parenta087a1b0fc7e6a8b2f439811b94813920a690dba (diff)
parentdf9a23c534f57e6f5b06acfbe6db8b636894e0ad (diff)
Merge pull request #5284 from mysterywolf/mutex
[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO
Diffstat (limited to 'components/cplusplus/cxx_Mutex.cpp')
-rw-r--r--components/cplusplus/cxx_Mutex.cpp2
1 files changed, 1 insertions, 1 deletions
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)