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

Function lwp_tid_init

components/lwp/lwp_tid.c:48–51  ·  view source on GitHub ↗

* @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. */

Source from the content-addressed store, hash-verified

46 * @note This function initializes a mutex lock used for thread ID management.
47 */
48int 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

Callers 1

lwp_component_initFunction · 0.85

Calls 1

rt_mutex_initFunction · 0.85

Tested by

no test coverage detected