diff options
| author | Bernard Xiong <[email protected]> | 2021-11-19 16:50:34 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-19 16:50:34 +0800 |
| commit | 9bbcd1a8b0b5b7a4892690680234054b4d6e0b58 (patch) | |
| tree | 772a7e2ccbeb401c91c2b6a90503bba5c79fdc30 /components/cplusplus/cxx_Mutex.cpp | |
| parent | a087a1b0fc7e6a8b2f439811b94813920a690dba (diff) | |
| parent | df9a23c534f57e6f5b06acfbe6db8b636894e0ad (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.cpp | 2 |
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) |
