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

Function sys_mutex_release

components/lwp/lwp_syscall.c:1935–1938  ·  view source on GitHub ↗

* @brief Releases (unlocks) a mutex. * * This system call releases a mutex that was previously acquired (locked) by the calling task. * If any other task is waiting for the mutex, one of them will be unblocked and allowed to * acquire the mutex. The release operation does not block the calling task, and it will return * immediately after unlocking the mutex. * * @param mutex The mutex handl

Source from the content-addressed store, hash-verified

1933 * @see sys_mutex_create(), sys_mutex_delete(), sys_mutex_take()
1934 */
1935sysret_t sys_mutex_release(rt_mutex_t mutex)
1936{
1937 return rt_mutex_release(mutex);
1938}
1939
1940#ifdef ARCH_MM_MMU
1941/**

Callers

nothing calls this directly

Calls 1

rt_mutex_releaseFunction · 0.85

Tested by

no test coverage detected