From 8e0a532887d28c927505ac69dd6b44312ad0ccaa Mon Sep 17 00:00:00 2001
From: Terraneo Federico <fede.tft@miosix.org>
Date: Sun, 26 Mar 2023 17:49:07 +0200
Subject: [PATCH] Implementation detail note for pthread_cond_timedwait

---
 miosix/kernel/pthread.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/miosix/kernel/pthread.cpp b/miosix/kernel/pthread.cpp
index 4dfb3260..d8b7d1f4 100644
--- a/miosix/kernel/pthread.cpp
+++ b/miosix/kernel/pthread.cpp
@@ -296,6 +296,8 @@ static_assert(sizeof(IntrusiveList<CondData>)==sizeof(pthread_cond_t),"Invalid p
 int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
 {
     //attr is currently not considered
+    //NOTE: pthread_condattr_setclock is not supported, the only clock supported
+    //for pthread_cond_timedwait is CLOCK_MONOTONIC
     new (cond) IntrusiveList<CondData>; //Placement new as cond is a C type
     return 0;
 }
-- 
GitLab