1#ifndef _PTHREADS_PRIVATE_H 2#define _PTHREADS_PRIVATE_H 3 4#include <sys/types.h> 5#include <sys/cpuset.h> 6 7struct pthread_attr { 8 int stacksize; 9 bool affinity_set; 10 cpuset_t affinity; 11}; 12 13struct pthread_barrier { 14 int count; 15 int max_count; 16 struct thread_sem mutex; 17 struct thread_sem barrier; 18 struct thread_sem reset; 19}; 20 21#endif 22