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

Function sys_mutex_delete

components/lwp/lwp_syscall.c:1881–1884  ·  view source on GitHub ↗

* @brief Deletes a mutex and releases associated resources. * * This system call deletes an existing mutex identified by the given handle `mutex`. * It releases any resources associated with the mutex and ensures that it is no longer * available for further synchronization operations. After deletion, the mutex handle * becomes invalid and should not be used. This operation also ensures that n

Source from the content-addressed store, hash-verified

1879 * @see sys_mutex_create(), sys_mutex_lock(), sys_mutex_unlock()
1880 */
1881sysret_t sys_mutex_delete(rt_mutex_t mutex)
1882{
1883 return lwp_user_object_delete(lwp_self(), (rt_object_t)mutex);
1884}
1885
1886/**
1887 * @brief Attempts to acquire (lock) a mutex.

Callers

nothing calls this directly

Calls 2

lwp_user_object_deleteFunction · 0.85
lwp_selfFunction · 0.85

Tested by

no test coverage detected