mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
Fix typo in mtx_timedlock
This commit is contained in:
committed by
Xiang Xiao
parent
03e90d9311
commit
b343fd2adb
+1
-1
@@ -203,7 +203,7 @@ static inline int mtx_init(FAR mtx_t *mutex, int type)
|
|||||||
* int mtx_timedlock(FAR mtx_t *mutex, FAR const struct timespec *tp);
|
* int mtx_timedlock(FAR mtx_t *mutex, FAR const struct timespec *tp);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define mtx_timedlock(mutex,tp) pthread_mutex_timedwait(mutex,tp)
|
#define mtx_timedlock(mutex,tp) pthread_mutex_timedlock(mutex,tp)
|
||||||
|
|
||||||
/* mtx_trylock: locks a mutex or returns without blocking if already locked
|
/* mtx_trylock: locks a mutex or returns without blocking if already locked
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user