From 3d07de2b716a62e83325687b4761ec4f2ead0271 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 1 May 2016 16:05:03 +0800 Subject: [PATCH] [Pthreads] Add more API declaration. --- components/pthreads/pthread.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/components/pthreads/pthread.h b/components/pthreads/pthread.h index e8ea849f0e..7481595682 100644 --- a/components/pthreads/pthread.h +++ b/components/pthreads/pthread.h @@ -142,6 +142,20 @@ typedef struct pthread_barrier pthread_barrier_t; /* pthread thread interface */ int pthread_attr_destroy(pthread_attr_t *attr); int pthread_attr_init(pthread_attr_t *attr); +int pthread_attr_setdetachstate(pthread_attr_t *attr, int state); +int pthread_attr_getdetachstate(pthread_attr_t const *attr, int *state); +int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy); +int pthread_attr_getschedpolicy(pthread_attr_t const *attr, int *policy); +int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stack_size); +int pthread_attr_getstacksize(pthread_attr_t const *attr, size_t *stack_size); +int pthread_attr_setstackaddr(pthread_attr_t *attr, void *stack_addr); +int pthread_attr_getstackaddr(pthread_attr_t const *attr, void **stack_addr); +int pthread_attr_setstack(pthread_attr_t *attr, + void *stack_base, + size_t stack_size); +int pthread_attr_getstack(pthread_attr_t const *attr, + void **stack_base, + size_t *stack_size); int pthread_system_init(void); int pthread_create (pthread_t *tid, const pthread_attr_t *attr,