Thread and Synchronization Interfaces

# Thread and Synchronization Interfaces

Type: typedef viod* rt_mutex_t;

rt_task_sleep

Prototype void rt_task_sleep(unsigned int time_sleep_ms)
Description Task sleep or cyclic waiting function
Input time_sleep_ms: sleep or waiting time (in ms)
Output No output
Response Success: RT_RES_SUCESS
Failure: RT_RES_ERROR
Remarks /

rt_port_mutex_create

Prototype int rt_port_mutex_create(rt_mutex_t *mutex)
Description Create a mutex
Input
Output /
Response Success: RT_RES_SUCESS
Failure: RT_RES_ERROR
Remarks /

rt_port_mutex_lock

Prototype int rt_port_mutex_lock(rt_mutex_t mutex)
Description Mutex locking
Input /
Output /
Response Success: RT_RES_SUCESS
Failure: RT_RES_ERROR
Remarks /

rt_port_mutex_unlock

Prototype int rt_port_mutex_unlock(rt_mutex_t mutex)
Description Mutex unlocking
Input /
Output /
Response Success: RT_RES_SUCESS
Failure: RT_RES_ERROR
Remarks /