12 #ifndef SSTMAC_SOFTWARE_PROCESS_PTHREAD_IMPL_H_INCLUDED 13 #define SSTMAC_SOFTWARE_PROCESS_PTHREAD_IMPL_H_INCLUDED 19 #define sstmac_pthread_t int 20 #define sstmac_pthread_cond_t int 21 #define sstmac_pthread_mutex_t int 22 #define sstmac_pthread_spinlock_t int 23 #define sstmac_pthread_once_t int 24 #define sstmac_pthread_cond_attr int 25 #define sstmac_pthread_mutexattr_t int 30 #define SSTMAC_PTHREAD_ONCE_INIT 0 31 #define SSTMAC_PTHREAD_MUTEX_INITIALIZER -1 32 #define SSTMAC_PTHREAD_COND_INITIALIZER -1 34 #define SSTMAC_PTHREAD_THREADS_MAX 1000 35 #define SSTMAC_PTHREAD_KEYS_MAX 10000 36 #define SSTMAC_PTHREAD_STACK_MIN 16384 37 #define SSTAMC_PTHREAD_CREATE_DETACHED 0 38 #define SSTMAC_PTHREAD_CREATE_JOINABLE 1 40 #undef PTHREAD_SCOPE_PROCESS 41 #define PTHREAD_SCOPE_PROCESS 0 43 #undef PTHREAD_SCOPE_SYSTEM 44 #define PTHREAD_SCOPE_SYSTEM 1 62 (*start_routine)(
void *),
void * arg);
151 (*init_routine)(
void));
155 (* dest_routine)(
void *));
168 (*routine)(
void *),
void *routine_arg);
int SSTMAC_pthread_attr_setaffinity_np(sstmac_pthread_attr_t *attr, size_t cpusetsize, const sstmac_cpu_set_t *cpuset)
void(* sstmac_pthread_key_destructor_fxn)(void *)
int SSTMAC_pthread_cond_init(sstmac_pthread_cond_t *cond, const sstmac_pthread_cond_attr *attr)
int SSTMAC_pthread_attr_setscope(sstmac_pthread_attr_t *, int scope)
int SSTMAC_pthread_key_delete(sstmac_pthread_key_t key)
int SSTMAC_pthread_once(sstmac_pthread_once_t *once_init, void(*init_routine)(void))
int SSTMAC_pthread_mutex_destroy(sstmac_pthread_mutex_t *mutex)
#define sstmac_pthread_cond_attr
int SSTMAC_pthread_mutexattr_destroy(sstmac_pthread_mutexattr_t *attr)
int SSTMAC_pthread_spin_init(sstmac_pthread_spinlock_t *lock, int pshared)
int SSTMAC_pthread_cond_broadcast(sstmac_pthread_cond_t *cond)
int SSTMAC_pthread_create(sstmac_pthread_t *thread, const sstmac_pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
int SSTMAC_pthread_attr_getaffinity_np(sstmac_pthread_attr_t attr, size_t cpusetsize, sstmac_cpu_set_t *cpuset)
int SSTMAC_pthread_spin_unlock(sstmac_pthread_spinlock_t *lock)
int SSTMAC_pthread_attr_getstack(sstmac_pthread_attr_t *attr, void **stack, size_t *stacksize)
void SSTMAC_pthread_cleanup_pop(int execute)
#define sstmac_pthread_mutexattr_t
int SSTMAC_pthread_cond_timedwait(sstmac_pthread_cond_t *cond, sstmac_pthread_mutex_t *mutex, const struct timespec *abstime)
int SSTMAC_pthread_equal(sstmac_pthread_t thread_1, sstmac_pthread_t thread_2)
int SSTMAC_pthread_join(sstmac_pthread_t thread, void **status)
int SSTMAC_pthread_spin_trylock(sstmac_pthread_spinlock_t *lock)
int SSTMAC_pthread_attr_init(sstmac_pthread_attr_t *attr)
int SSTMAC_pthread_attr_destroy(sstmac_pthread_attr_t *attr)
int SSTMAC_pthread_mutex_trylock(sstmac_pthread_mutex_t *mutex)
int SSTMAC_pthread_cond_wait(sstmac_pthread_cond_t *cond, sstmac_pthread_mutex_t *mutex)
#define sstmac_pthread_mutex_t
#define sstmac_pthread_once_t
int SSTMAC_pthread_yield()
void SSTMAC_pthread_cleanup_push(void(*routine)(void *), void *routine_arg)
int SSTMAC_pthread_cond_destroy(sstmac_pthread_cond_t *cond)
int SSTMAC_pthread_attr_setdetachstate(sstmac_pthread_attr_t *attr, int state)
#define sstmac_pthread_spinlock_t
int SSTMAC_pthread_mutex_unlock(sstmac_pthread_mutex_t *mutex)
int SSTMAC_pthread_detach(sstmac_pthread_t)
int SSTMAC_pthread_mutexattr_init(sstmac_pthread_mutexattr_t *attr)
int SSTMAC_pthread_cond_signal(sstmac_pthread_cond_t *cond)
int SSTMAC_pthread_spin_lock(sstmac_pthread_spinlock_t *lock)
#define sstmac_pthread_cond_t
int SSTMAC_pthread_key_create(sstmac_pthread_key_t *key, void(*dest_routine)(void *))
int SSTMAC_pthread_mutex_lock(sstmac_pthread_mutex_t *mutex)
int SSTMAC_pthread_spin_destroy(sstmac_pthread_spinlock_t *lock)
void * SSTMAC_pthread_getspecific(sstmac_pthread_key_t key)
int SSTMAC_pthread_attr_getstacksize(sstmac_pthread_attr_t *attr, size_t *stacksize)
int SSTMAC_pthread_kill(sstmac_pthread_t thr, int signal)
void SSTMAC_pthread_exit(void *retval)
int SSTMAC_pthread_attr_getdetachstate(const sstmac_pthread_attr_t *attr, int *state)
sstmac_pthread_t SSTMAC_pthread_self()
int SSTMAC_pthread_setspecific(sstmac_pthread_key_t key, const void *pointer)
int SSTMAC_pthread_attr_setstacksize(sstmac_pthread_attr_t *attr, size_t stacksize)
int SSTMAC_pthread_attr_getscope(sstmac_pthread_attr_t *, int *scope)
int SSTMAC_pthread_mutex_init(sstmac_pthread_mutex_t *mutex, const sstmac_pthread_mutexattr_t *attr)