diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-26 07:36:25 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-05 14:56:13 +0200 |
commit | 55c5dda9b5d2627ef7bb5568f11632c4c03bf41b (patch) | |
tree | 20a147c9f99080a316c1e1924c7be6e0b13a8fc5 /newlib | |
parent | d902eef0939eeae5ce4a188251c993cd00648a13 (diff) | |
download | newlib-55c5dda9b5d2627ef7bb5568f11632c4c03bf41b.zip newlib-55c5dda9b5d2627ef7bb5568f11632c4c03bf41b.tar.gz newlib-55c5dda9b5d2627ef7bb5568f11632c4c03bf41b.tar.bz2 |
RTEMS: Make pthread_cond_t self-contained
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/sys/rtems/include/sys/_pthreadtypes.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h b/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h index 5638f15..0b607f7 100644 --- a/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h +++ b/newlib/libc/sys/rtems/include/sys/_pthreadtypes.h @@ -152,9 +152,13 @@ typedef struct { /* Condition Variables */ -typedef __uint32_t pthread_cond_t; /* identify a condition variable */ +typedef struct { + unsigned long _flags; + struct _Thread_queue_Queue _Queue; + pthread_mutex_t *_mutex; +} pthread_cond_t; -#define _PTHREAD_COND_INITIALIZER ((pthread_cond_t) 0xFFFFFFFF) +#define _PTHREAD_COND_INITIALIZER { 0, _THREAD_QUEUE_INITIALIZER, 0 } typedef struct { int is_initialized; |