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

Function lwp_futex_init

components/lwp/lwp_futex.c:29–32  ·  view source on GitHub ↗

* @brief Initialize the global futex lock * * @return rt_err_t Returns RT_EOK on success, error code on failure */

Source from the content-addressed store, hash-verified

27 * @return rt_err_t Returns RT_EOK on success, error code on failure
28 */
29rt_err_t lwp_futex_init(void)
30{
31 return rt_mutex_init(&_glob_futex, "glob_ftx", RT_IPC_FLAG_PRIO);
32}
33
34/**
35 * @brief Locks the global futex with specified operation flags

Callers 1

lwp_component_initFunction · 0.85

Calls 1

rt_mutex_initFunction · 0.85

Tested by

no test coverage detected