From fd564baea58cd14bd7ef9ed3c6071076f2f60e2e Mon Sep 17 00:00:00 2001 From: zhushengle Date: Wed, 20 Oct 2021 15:42:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81pthread=5Fcondattr=5F?= =?UTF-8?q?setclock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #I4ETLN Signed-off-by: zhushengle Change-Id: Ibfb30f73921138f70d8246ae3cf5844e17b0a770 --- porting/liteos_m/kernel/include/bits/alltypes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/porting/liteos_m/kernel/include/bits/alltypes.h b/porting/liteos_m/kernel/include/bits/alltypes.h index e4c5af78..150e648c 100644 --- a/porting/liteos_m/kernel/include/bits/alltypes.h +++ b/porting/liteos_m/kernel/include/bits/alltypes.h @@ -421,7 +421,7 @@ typedef struct { unsigned __attr; } pthread_mutexattr_t; #endif #if defined(__NEED_pthread_condattr_t) && !defined(__DEFINED_pthread_condattr_t) -typedef struct { unsigned __attr; } pthread_condattr_t; +typedef struct { int clock; } pthread_condattr_t; #define __DEFINED_pthread_condattr_t #endif @@ -566,6 +566,7 @@ typedef struct pthread_cond { EVENT_CB_S event; /**< Event object*/ pthread_mutex_t* mutex; /**< Mutex locker for condition variable protection */ volatile int value; /**< Condition variable state value*/ + int clock; } pthread_cond_t; #define __DEFINED_pthread_cond_t #endif -- GitLab