* @brief Initialize the global futex lock * * @return rt_err_t Returns RT_EOK on success, error code on failure */
| 27 | * @return rt_err_t Returns RT_EOK on success, error code on failure |
| 28 | */ |
| 29 | rt_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 |
no test coverage detected