diff options
| author | Meco Man <[email protected]> | 2021-07-18 12:52:04 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-07-18 12:52:04 +0800 |
| commit | 98c72007d2f15f4e4314f7c820d2d58e625c0d5d (patch) | |
| tree | 37479e022047992ce3732e0e3d7670461222e8fc /examples/kernel/mutex_simple.c | |
| parent | 6c5546cc9c2103439dbe2e641f9f862868d2c9ab (diff) | |
[example] replace RT_IPC_FLAG_FIFO with RT_IPC_FLAG_PRIO
Diffstat (limited to 'examples/kernel/mutex_simple.c')
| -rw-r--r-- | examples/kernel/mutex_simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/kernel/mutex_simple.c b/examples/kernel/mutex_simple.c index 4f6c5d7d28..ee875cca7d 100644 --- a/examples/kernel/mutex_simple.c +++ b/examples/kernel/mutex_simple.c @@ -87,7 +87,7 @@ static void thread3_entry(void* parameter) int mutex_simple_init() { /* 创建互斥锁 */ - mutex = rt_mutex_create("mutex", RT_IPC_FLAG_FIFO); + mutex = rt_mutex_create("mutex", RT_IPC_FLAG_PRIO); if (mutex == RT_NULL) { tc_stat(TC_STAT_END | TC_STAT_FAILED); |
