RTEMS: Make pthread_barrier_t self-contained

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber 2017-09-21 15:21:13 +02:00
parent 8253c240cb
commit 9187bb23a0
1 changed files with 7 additions and 1 deletions

View File

@ -179,7 +179,13 @@ typedef struct {
/* POSIX Barrier Types */
#if defined(_POSIX_BARRIERS)
typedef __uint32_t pthread_barrier_t; /* POSIX Barrier Object */
typedef struct {
unsigned long _flags;
struct _Thread_queue_Queue _Queue;
unsigned int _count;
unsigned int _waiting_threads;
} pthread_barrier_t;
typedef struct {
int is_initialized; /* is this structure initialized? */
#if defined(_POSIX_THREAD_PROCESS_SHARED)