diff options
| author | wycwyhwyq <[email protected]> | 2025-02-27 17:46:32 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-04-13 15:25:42 +0800 |
| commit | f13193ff92e47c39436e0254062927a39450e04a (patch) | |
| tree | b294bb5d826913916cc495ba12cf0456238d734b /src/thread.c | |
| parent | 2db2bf0cc7b8872e15a4b963a24f7d677f79060f (diff) | |
[src] fix mutex bug
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c index 789077d082..09cba18131 100644 --- a/src/thread.c +++ b/src/thread.c @@ -797,7 +797,7 @@ rt_err_t rt_thread_control(rt_thread_t thread, int cmd, void *arg) rt_err_t error; rt_sched_lock_level_t slvl; rt_sched_lock(&slvl); - error = rt_sched_thread_change_priority(thread, *(rt_uint8_t *)arg); + error = rt_sched_thread_set_priority(thread, *(rt_uint8_t *)arg); rt_sched_unlock(slvl); return error; } |
