]> sourceware.org Git - newlib-cygwin.git/commitdiff
RTEMS: Make pthread_cond_t self-contained
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Tue, 26 Sep 2017 05:36:25 +0000 (07:36 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 5 Oct 2017 12:56:13 +0000 (14:56 +0200)
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
newlib/libc/sys/rtems/include/sys/_pthreadtypes.h

index 5638f1569dd63c0780648d17392e6b5669c6ea24..0b607f7f26409f2f458ba4d082e16ef04b3cce35 100644 (file)
@@ -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;
This page took 0.034872 seconds and 5 git commands to generate.