You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/02/02 17:03:24 UTC
(nuttx) branch master updated: Fix typo in mtx_timedlock
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new b343fd2adb Fix typo in mtx_timedlock
b343fd2adb is described below
commit b343fd2adba95ebe44659a27a00a3da9324cb971
Author: Antoine Juckler <64...@users.noreply.github.com>
AuthorDate: Fri Feb 2 14:49:06 2024 +0900
Fix typo in mtx_timedlock
---
include/threads.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/threads.h b/include/threads.h
index 2449dc62e3..5044d47060 100644
--- a/include/threads.h
+++ b/include/threads.h
@@ -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);
*/
-#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
*