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

Function sys_sem_release

components/lwp/lwp_syscall.c:1791–1794  ·  view source on GitHub ↗

* @brief Releases a semaphore and wakes up any waiting tasks. * * This system call releases a semaphore, incrementing its value and allowing any tasks * that are blocked (waiting) on the semaphore to proceed. If there are tasks waiting for * the semaphore, one of them will be unblocked and allowed to take the semaphore. * The release operation does not block the calling task, and it will retu

Source from the content-addressed store, hash-verified

1789 * @see sys_sem_create(), sys_sem_delete(), sys_sem_take()
1790 */
1791sysret_t sys_sem_release(rt_sem_t sem)
1792{
1793 return rt_sem_release(sem);
1794}
1795
1796/**
1797 * @brief Creates a mutex.

Callers

nothing calls this directly

Calls 1

rt_sem_releaseFunction · 0.85

Tested by

no test coverage detected