From 4fa84f10eca1f824649ca23cda57066bd085d4a0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 19 Feb 2016 15:45:17 -0600 Subject: 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. --- newlib/libc/include/sys/types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'newlib/libc/include/sys') 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 */ -- cgit v1.2.3