提交 54129a54 编写于 作者: O openharmony_ci 提交者: Gitee

!135 feat: 支持pthread_condattr_setclock

Merge pull request !135 from zhushengle/cond
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册