diff options
author | Joel Sherrill <joel@rtems.org> | 2016-02-19 15:45:17 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2016-02-22 10:05:17 -0600 |
commit | 4fa84f10eca1f824649ca23cda57066bd085d4a0 (patch) | |
tree | 5853c998cc5bf75e8db63581eb9633d11f611b28 /newlib/libc/include/sys | |
parent | b89d317cdcf9326513bf490bb9408d066a32464f (diff) | |
download | cygnal-4fa84f10eca1f824649ca23cda57066bd085d4a0.tar.gz cygnal-4fa84f10eca1f824649ca23cda57066bd085d4a0.tar.bz2 cygnal-4fa84f10eca1f824649ca23cda57066bd085d4a0.zip |
pthread.h, sys/types.h Add missing pthread methods
* pthread.h: Add prototypes for pthread_condattr_getclock(),
pthread_condattr_setclock(), pthread_setschedpri(),
pthread_getcpuclockid(), pthread_getconcurrency(), and
pthread_setconcurrency(). Also cleaned up file header to
remove CVS Id string.
* sys/types.h: Add clock ID to pthread_condattr_t.
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r-- | newlib/libc/include/sys/types.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index 1e0d07551..65e7b9bf5 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -409,9 +409,10 @@ typedef struct { typedef __uint32_t pthread_cond_t; /* identify a condition variable */ typedef struct { - int is_initialized; + int is_initialized; + clock_t clock; /* specifiy clock for timeouts */ #if defined(_POSIX_THREAD_PROCESS_SHARED) - int process_shared; /* allow this to be shared amongst processes */ + int process_shared; /* allow this to be shared amongst processes */ #endif } pthread_condattr_t; /* a condition attribute object */ |