SST/macro
Classes | Macros | Typedefs | Functions
sstmac_pthread_impl.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <sstmac/libraries/pthread/sstmac_cpu_set.h>
#include <sstmac/software/process/time.h>
Include dependency graph for sstmac_pthread_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sstmac_pthread_attr_t
 

Macros

#define sstmac_pthread_t   int
 
#define sstmac_pthread_cond_t   int
 
#define sstmac_pthread_mutex_t   int
 
#define sstmac_pthread_spinlock_t   int
 
#define sstmac_pthread_once_t   int
 
#define sstmac_pthread_cond_attr   int
 
#define sstmac_pthread_mutexattr_t   int
 
#define SSTMAC_PTHREAD_ONCE_INIT   0
 
#define SSTMAC_PTHREAD_MUTEX_INITIALIZER   -1
 
#define SSTMAC_PTHREAD_COND_INITIALIZER   -1
 
#define SSTMAC_PTHREAD_THREADS_MAX   1000
 
#define SSTMAC_PTHREAD_KEYS_MAX   10000
 
#define SSTMAC_PTHREAD_STACK_MIN   16384
 
#define SSTAMC_PTHREAD_CREATE_DETACHED   0
 
#define SSTMAC_PTHREAD_CREATE_JOINABLE   1
 
#define PTHREAD_SCOPE_PROCESS   0
 
#define PTHREAD_SCOPE_SYSTEM   1
 

Typedefs

typedef int sstmac_pthread_key_t
 
typedef void(* sstmac_pthread_key_destructor_fxn) (void *)
 

Functions

int SSTMAC_pthread_create (sstmac_pthread_t *thread, const sstmac_pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
 
void SSTMAC_pthread_exit (void *retval)
 
int SSTMAC_pthread_join (sstmac_pthread_t thread, void **status)
 
sstmac_pthread_t SSTMAC_pthread_self ()
 
int SSTMAC_pthread_equal (sstmac_pthread_t thread_1, sstmac_pthread_t thread_2)
 
int SSTMAC_pthread_mutex_init (sstmac_pthread_mutex_t *mutex, const sstmac_pthread_mutexattr_t *attr)
 
int SSTMAC_pthread_attr_setaffinity_np (sstmac_pthread_attr_t *attr, size_t cpusetsize, const sstmac_cpu_set_t *cpuset)
 
int SSTMAC_pthread_attr_getaffinity_np (sstmac_pthread_attr_t attr, size_t cpusetsize, sstmac_cpu_set_t *cpuset)
 
int SSTMAC_pthread_mutexattr_init (sstmac_pthread_mutexattr_t *attr)
 
int SSTMAC_pthread_mutexattr_destroy (sstmac_pthread_mutexattr_t *attr)
 
int SSTMAC_pthread_attr_getstack (sstmac_pthread_attr_t *attr, void **stack, size_t *stacksize)
 
int SSTMAC_pthread_kill (sstmac_pthread_t thr, int signal)
 
int SSTMAC_pthread_yield ()
 
int SSTMAC_pthread_mutex_destroy (sstmac_pthread_mutex_t *mutex)
 
int SSTMAC_pthread_mutex_lock (sstmac_pthread_mutex_t *mutex)
 
int SSTMAC_pthread_mutex_trylock (sstmac_pthread_mutex_t *mutex)
 
int SSTMAC_pthread_mutex_unlock (sstmac_pthread_mutex_t *mutex)
 
int SSTMAC_pthread_spin_init (sstmac_pthread_spinlock_t *lock, int pshared)
 
int SSTMAC_pthread_spin_destroy (sstmac_pthread_spinlock_t *lock)
 
int SSTMAC_pthread_spin_trylock (sstmac_pthread_spinlock_t *lock)
 
int SSTMAC_pthread_spin_lock (sstmac_pthread_spinlock_t *lock)
 
int SSTMAC_pthread_spin_unlock (sstmac_pthread_spinlock_t *lock)
 
int SSTMAC_pthread_cond_init (sstmac_pthread_cond_t *cond, const sstmac_pthread_cond_attr *attr)
 
int SSTMAC_pthread_cond_destroy (sstmac_pthread_cond_t *cond)
 
int SSTMAC_pthread_cond_wait (sstmac_pthread_cond_t *cond, sstmac_pthread_mutex_t *mutex)
 
int SSTMAC_pthread_cond_timedwait (sstmac_pthread_cond_t *cond, sstmac_pthread_mutex_t *mutex, const struct timespec *abstime)
 
int SSTMAC_pthread_cond_signal (sstmac_pthread_cond_t *cond)
 
int SSTMAC_pthread_cond_broadcast (sstmac_pthread_cond_t *cond)
 
int SSTMAC_pthread_once (sstmac_pthread_once_t *once_init, void(*init_routine)(void))
 
int SSTMAC_pthread_key_create (sstmac_pthread_key_t *key, void(*dest_routine)(void *))
 
int SSTMAC_pthread_key_delete (sstmac_pthread_key_t key)
 
int SSTMAC_pthread_setspecific (sstmac_pthread_key_t key, const void *pointer)
 
void * SSTMAC_pthread_getspecific (sstmac_pthread_key_t key)
 
void SSTMAC_pthread_cleanup_push (void(*routine)(void *), void *routine_arg)
 
void SSTMAC_pthread_cleanup_pop (int execute)
 
int SSTMAC_pthread_attr_init (sstmac_pthread_attr_t *attr)
 
int SSTMAC_pthread_attr_destroy (sstmac_pthread_attr_t *attr)
 
int SSTMAC_pthread_attr_getstacksize (sstmac_pthread_attr_t *attr, size_t *stacksize)
 
int SSTMAC_pthread_attr_setstacksize (sstmac_pthread_attr_t *attr, size_t stacksize)
 
int SSTMAC_pthread_attr_getdetachstate (const sstmac_pthread_attr_t *attr, int *state)
 
int SSTMAC_pthread_attr_setdetachstate (sstmac_pthread_attr_t *attr, int state)
 
int SSTMAC_pthread_attr_setscope (sstmac_pthread_attr_t *, int scope)
 
int SSTMAC_pthread_attr_getscope (sstmac_pthread_attr_t *, int *scope)
 
int SSTMAC_pthread_detach (sstmac_pthread_t)
 

Macro Definition Documentation

#define PTHREAD_SCOPE_PROCESS   0

Definition at line 41 of file sstmac_pthread_impl.h.

#define PTHREAD_SCOPE_SYSTEM   1

Definition at line 44 of file sstmac_pthread_impl.h.

#define SSTAMC_PTHREAD_CREATE_DETACHED   0

Definition at line 37 of file sstmac_pthread_impl.h.

#define sstmac_pthread_cond_attr   int

Definition at line 24 of file sstmac_pthread_impl.h.

#define SSTMAC_PTHREAD_COND_INITIALIZER   -1

Definition at line 32 of file sstmac_pthread_impl.h.

#define sstmac_pthread_cond_t   int

Definition at line 20 of file sstmac_pthread_impl.h.

#define SSTMAC_PTHREAD_CREATE_JOINABLE   1

Definition at line 38 of file sstmac_pthread_impl.h.

#define SSTMAC_PTHREAD_KEYS_MAX   10000

Definition at line 35 of file sstmac_pthread_impl.h.

#define SSTMAC_PTHREAD_MUTEX_INITIALIZER   -1

Definition at line 31 of file sstmac_pthread_impl.h.

#define sstmac_pthread_mutex_t   int

Definition at line 21 of file sstmac_pthread_impl.h.

#define sstmac_pthread_mutexattr_t   int

Definition at line 25 of file sstmac_pthread_impl.h.

#define SSTMAC_PTHREAD_ONCE_INIT   0

Definition at line 30 of file sstmac_pthread_impl.h.

#define sstmac_pthread_once_t   int

Definition at line 23 of file sstmac_pthread_impl.h.

#define sstmac_pthread_spinlock_t   int

Definition at line 22 of file sstmac_pthread_impl.h.

#define SSTMAC_PTHREAD_STACK_MIN   16384

Definition at line 36 of file sstmac_pthread_impl.h.

#define sstmac_pthread_t   int

Definition at line 19 of file sstmac_pthread_impl.h.

#define SSTMAC_PTHREAD_THREADS_MAX   1000

Definition at line 34 of file sstmac_pthread_impl.h.

Typedef Documentation

typedef void(* sstmac_pthread_key_destructor_fxn) (void *)

Definition at line 28 of file sstmac_pthread_impl.h.

typedef int sstmac_pthread_key_t

Definition at line 27 of file sstmac_pthread_impl.h.

Function Documentation

int SSTMAC_pthread_attr_destroy ( sstmac_pthread_attr_t attr)
int SSTMAC_pthread_attr_getaffinity_np ( sstmac_pthread_attr_t  attr,
size_t  cpusetsize,
sstmac_cpu_set_t cpuset 
)
int SSTMAC_pthread_attr_getdetachstate ( const sstmac_pthread_attr_t attr,
int *  state 
)
int SSTMAC_pthread_attr_getscope ( sstmac_pthread_attr_t ,
int *  scope 
)
int SSTMAC_pthread_attr_getstack ( sstmac_pthread_attr_t attr,
void **  stack,
size_t *  stacksize 
)
int SSTMAC_pthread_attr_getstacksize ( sstmac_pthread_attr_t attr,
size_t *  stacksize 
)
int SSTMAC_pthread_attr_init ( sstmac_pthread_attr_t attr)
int SSTMAC_pthread_attr_setaffinity_np ( sstmac_pthread_attr_t attr,
size_t  cpusetsize,
const sstmac_cpu_set_t cpuset 
)
int SSTMAC_pthread_attr_setdetachstate ( sstmac_pthread_attr_t attr,
int  state 
)
int SSTMAC_pthread_attr_setscope ( sstmac_pthread_attr_t ,
int  scope 
)
int SSTMAC_pthread_attr_setstacksize ( sstmac_pthread_attr_t attr,
size_t  stacksize 
)
void SSTMAC_pthread_cleanup_pop ( int  execute)
void SSTMAC_pthread_cleanup_push ( void(*)(void *)  routine,
void *  routine_arg 
)
int SSTMAC_pthread_cond_broadcast ( sstmac_pthread_cond_t cond)
int SSTMAC_pthread_cond_destroy ( sstmac_pthread_cond_t cond)
int SSTMAC_pthread_cond_init ( sstmac_pthread_cond_t cond,
const sstmac_pthread_cond_attr attr 
)
int SSTMAC_pthread_cond_signal ( sstmac_pthread_cond_t cond)
int SSTMAC_pthread_cond_timedwait ( sstmac_pthread_cond_t cond,
sstmac_pthread_mutex_t mutex,
const struct timespec *  abstime 
)
int SSTMAC_pthread_cond_wait ( sstmac_pthread_cond_t cond,
sstmac_pthread_mutex_t mutex 
)
int SSTMAC_pthread_create ( sstmac_pthread_t thread,
const sstmac_pthread_attr_t attr,
void *(*)(void *)  start_routine,
void *  arg 
)
int SSTMAC_pthread_detach ( sstmac_pthread_t  )
int SSTMAC_pthread_equal ( sstmac_pthread_t  thread_1,
sstmac_pthread_t  thread_2 
)
void SSTMAC_pthread_exit ( void *  retval)
void* SSTMAC_pthread_getspecific ( sstmac_pthread_key_t  key)
int SSTMAC_pthread_join ( sstmac_pthread_t  thread,
void **  status 
)
int SSTMAC_pthread_key_create ( sstmac_pthread_key_t key,
void(*)(void *)  dest_routine 
)
int SSTMAC_pthread_key_delete ( sstmac_pthread_key_t  key)
int SSTMAC_pthread_kill ( sstmac_pthread_t  thr,
int  signal 
)
int SSTMAC_pthread_mutex_destroy ( sstmac_pthread_mutex_t mutex)
int SSTMAC_pthread_mutex_init ( sstmac_pthread_mutex_t mutex,
const sstmac_pthread_mutexattr_t attr 
)
int SSTMAC_pthread_mutex_lock ( sstmac_pthread_mutex_t mutex)
int SSTMAC_pthread_mutex_trylock ( sstmac_pthread_mutex_t mutex)
int SSTMAC_pthread_mutex_unlock ( sstmac_pthread_mutex_t mutex)
int SSTMAC_pthread_mutexattr_destroy ( sstmac_pthread_mutexattr_t attr)
int SSTMAC_pthread_mutexattr_init ( sstmac_pthread_mutexattr_t attr)
int SSTMAC_pthread_once ( sstmac_pthread_once_t once_init,
void(*)(void)  init_routine 
)
sstmac_pthread_t SSTMAC_pthread_self ( )
int SSTMAC_pthread_setspecific ( sstmac_pthread_key_t  key,
const void *  pointer 
)
int SSTMAC_pthread_spin_destroy ( sstmac_pthread_spinlock_t lock)
int SSTMAC_pthread_spin_init ( sstmac_pthread_spinlock_t lock,
int  pshared 
)
int SSTMAC_pthread_spin_lock ( sstmac_pthread_spinlock_t lock)
int SSTMAC_pthread_spin_trylock ( sstmac_pthread_spinlock_t lock)
int SSTMAC_pthread_spin_unlock ( sstmac_pthread_spinlock_t lock)
int SSTMAC_pthread_yield ( )