MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sys_exit_critical

Function sys_exit_critical

components/lwp/lwp_syscall.c:4363–4366  ·  view source on GitHub ↗

* @brief Exits a critical section and restores the system's previous state. * * @note Exiting the critical section as soon as the protected operation is completed * is essential to avoid performance degradation or system deadlocks. Ensure * that every call to `sys_enter_critical` is matched with a corresponding * `sys_exit_critical` call. * * @warning Calling this function

Source from the content-addressed store, hash-verified

4361 * if required.
4362 */
4363void sys_exit_critical(void)
4364{
4365 rt_sem_release(&critical_lock);
4366}
4367
4368/* syscall: "sys_log" ret: "int" args: "const char*" "size" */
4369static int __sys_log_enable = 0;

Callers

nothing calls this directly

Calls 1

rt_sem_releaseFunction · 0.85

Tested by

no test coverage detected