diff options
| author | wangxiaoyao <[email protected]> | 2023-02-20 13:39:34 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2023-02-21 08:48:49 +0800 |
| commit | ed58f6676d074ec9f66ea78e23d1e1657c9fef20 (patch) | |
| tree | 0b24af0f5a0244e17abc3cef14abe2dd746248cf /src/cpu.c | |
| parent | 29c7278edc8bd47f0263143cf85568c8c0e6e61e (diff) | |
[src] add assertion for debugging
Diffstat (limited to 'src/cpu.c')
| -rw-r--r-- | src/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -225,6 +225,7 @@ void rt_cpus_unlock(rt_base_t level) if (pcpu->current_thread != RT_NULL) { + RT_ASSERT(pcpu->current_thread->cpus_lock_nest > 0); pcpu->current_thread->cpus_lock_nest--; if (pcpu->current_thread->cpus_lock_nest == 0) |
