* @brief Initialize the thread ID manager * * @return int Returns RT_EOK (0) on success, error code on failure * * @note This function initializes a mutex lock used for thread ID management. */
| 46 | * @note This function initializes a mutex lock used for thread ID management. |
| 47 | */ |
| 48 | int lwp_tid_init(void) |
| 49 | { |
| 50 | return rt_mutex_init(&tid_lock, "tidmtx", RT_IPC_FLAG_PRIO); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * @brief Allocates a thread ID (TID) from available resources |
no test coverage detected