PPL Logo

conv-core/cpthreads.h File Reference

Go to the source code of this file.

Data Structures

struct  Cpthread_attr_s
struct  Cpthread_mutexattr_s
struct  Cpthread_mutex_s
struct  Cpthread_condattr_s
struct  Cpthread_cond_s
struct  Cpthread_once_t

Typedefs

typedef struct Cpthread_attr_s Cpthread_attr_t
typedef struct Cpthread_key_sCpthread_key_t
typedef struct Cpthread_cleanup_sCpthread_cleanup_t
typedef struct Cpthread_mutexattr_s Cpthread_mutexattr_t
typedef struct Cpthread_condattr_s Cpthread_condattr_t
typedef struct Cpthread_mutex_s Cpthread_mutex_t
typedef struct Cpthread_cond_s Cpthread_cond_t
typedef struct Cpthread_sCpthread_t

Functions

 CtvDeclare (Cpthread_t, Cpthread_current)
 CtvDeclare (int, Cpthread_errcode)
 CtvExtern (Cpthread_t, Cpthread_current)
 CtvExtern (int, Cpthread_errcode)
int Cpthread_attr_init (Cpthread_attr_t *attr)
int Cpthread_attr_destroy (Cpthread_attr_t *attr)
int Cpthread_attr_getstacksize (Cpthread_attr_t *attr, size_t *size)
int Cpthread_attr_setstacksize (Cpthread_attr_t *attr, size_t size)
int Cpthread_attr_getdetachstate (Cpthread_attr_t *attr, int *state)
int Cpthread_attr_setdetachstate (Cpthread_attr_t *attr, int state)
int Cpthread_key_create (Cpthread_key_t *keyp, void(*destructo)(void *))
int Cpthread_key_delete (Cpthread_key_t key)
int Cpthread_setspecific (Cpthread_key_t key, void *val)
void * Cpthread_getspecific (Cpthread_key_t key)
void Cpthread_cleanup_push (void(*routine)(void *), void *arg)
void Cpthread_cleanup_pop (int execute)
void Cpthread_exit (void *status)
void Cpthread_top (Cpthread_t pt)
int Cpthread_create (Cpthread_t *thread, Cpthread_attr_t *attr, void *(*fn)(void *), void *arg)
int Cpthread_equal (Cpthread_t t1, Cpthread_t t2)
int Cpthread_detach (Cpthread_t pt)
int Cpthread_join (Cpthread_t pt, void **status)
int Cpthread_mutexattr_init (Cpthread_mutexattr_t *mattr)
int Cpthread_mutexattr_destroy (Cpthread_mutexattr_t *mattr)
int Cpthread_mutexattr_getpshared (Cpthread_mutexattr_t *mattr, int *pshared)
int Cpthread_mutexattr_setpshared (Cpthread_mutexattr_t *mattr, int pshared)
int Cpthread_mutex_init (Cpthread_mutex_t *mutex, Cpthread_mutexattr_t *mattr)
int Cpthread_mutex_destroy (Cpthread_mutex_t *mutex)
int Cpthread_mutex_lock (Cpthread_mutex_t *mutex)
int Cpthread_mutex_trylock (Cpthread_mutex_t *mutex)
int Cpthread_mutex_unlock (Cpthread_mutex_t *mutex)
int Cpthread_condattr_init (Cpthread_condattr_t *cattr)
int Cpthread_condattr_destroy (Cpthread_condattr_t *cattr)
int Cpthread_condattr_getpshared (Cpthread_condattr_t *cattr, int *pshared)
int Cpthread_condattr_setpshared (Cpthread_condattr_t *cattr, int pshared)
int Cpthread_cond_init (Cpthread_cond_t *cond, Cpthread_condattr_t *cattr)
int Cpthread_cond_destroy (Cpthread_cond_t *cond)
int Cpthread_cond_wait (Cpthread_cond_t *cond, Cpthread_mutex_t *mutex)
int Cpthread_cond_signal (Cpthread_cond_t *cond)
int Cpthread_cond_broadcast (Cpthread_cond_t *cond)
int Cpthread_once (Cpthread_once_t *once, void(*fn)(void))
int Cpthread_init ()
void Cpthread_initialize ()
void Cpthread_start_main (CmiStartFn fn, int argc, char **argv)


Typedef Documentation

Definition at line 52 of file cpthreads.h.

typedef struct Cpthread_key_s* Cpthread_key_t

Definition at line 53 of file cpthreads.h.

Definition at line 54 of file cpthreads.h.

Definition at line 55 of file cpthreads.h.

Definition at line 56 of file cpthreads.h.

Definition at line 57 of file cpthreads.h.

Definition at line 58 of file cpthreads.h.

typedef struct Cpthread_s* Cpthread_t

Definition at line 59 of file cpthreads.h.


Function Documentation

CtvDeclare ( Cpthread_t  ,
Cpthread_current   
)

CtvDeclare ( int  ,
Cpthread_errcode   
)

CtvExtern ( Cpthread_t  ,
Cpthread_current   
)

CtvExtern ( int  ,
Cpthread_errcode   
)

int Cpthread_attr_init ( Cpthread_attr_t attr  ) 

int Cpthread_attr_destroy ( Cpthread_attr_t attr  ) 

Definition at line 219 of file cpthreads.c.

References Cpthread_attr_s::magic.

int Cpthread_attr_getstacksize ( Cpthread_attr_t attr,
size_t *  size 
)

Definition at line 226 of file cpthreads.c.

References Cpthread_attr_s::magic, and Cpthread_attr_s::stacksize.

int Cpthread_attr_setstacksize ( Cpthread_attr_t attr,
size_t  size 
)

Definition at line 233 of file cpthreads.c.

References Cpthread_attr_s::magic, and Cpthread_attr_s::stacksize.

int Cpthread_attr_getdetachstate ( Cpthread_attr_t attr,
int state 
)

Definition at line 240 of file cpthreads.c.

References Cpthread_attr_s::detached, and Cpthread_attr_s::magic.

int Cpthread_attr_setdetachstate ( Cpthread_attr_t attr,
int  state 
)

Definition at line 247 of file cpthreads.c.

References Cpthread_attr_s::detached, and Cpthread_attr_s::magic.

Referenced by Cpthread_start_main().

int Cpthread_key_create ( Cpthread_key_t keyp,
void(*)(void *)  destructo 
)

int Cpthread_key_delete ( Cpthread_key_t  key  ) 

Definition at line 119 of file cpthreads.c.

References Cpthread_key_s::magic, and Cpthread_key_s::next.

int Cpthread_setspecific ( Cpthread_key_t  key,
void *  val 
)

Definition at line 142 of file cpthreads.c.

References data, Cpthread_key_s::magic, and Cpthread_key_s::offset.

void* Cpthread_getspecific ( Cpthread_key_t  key  ) 

Definition at line 151 of file cpthreads.c.

References data, Cpthread_key_s::magic, and Cpthread_key_s::offset.

void Cpthread_cleanup_push ( void(*)(void *)  routine,
void *  arg 
)

void Cpthread_cleanup_pop ( int  execute  ) 

void Cpthread_exit ( void *  status  ) 

void Cpthread_top ( Cpthread_t  pt  ) 

int Cpthread_create ( Cpthread_t thread,
Cpthread_attr_t attr,
void *(*)(void *)  fn,
void *  arg 
)

int Cpthread_equal ( Cpthread_t  t1,
Cpthread_t  t2 
)

Definition at line 345 of file cpthreads.c.

int Cpthread_detach ( Cpthread_t  pt  ) 

Definition at line 350 of file cpthreads.c.

References Cpthread_s::detached, free(), Cpthread_s::magic, and Cpthread_s::thread.

int Cpthread_join ( Cpthread_t  pt,
void **  status 
)

int Cpthread_mutexattr_init ( Cpthread_mutexattr_t mattr  ) 

Definition at line 402 of file cpthreads.c.

References Cpthread_mutexattr_s::magic.

int Cpthread_mutexattr_destroy ( Cpthread_mutexattr_t mattr  ) 

Definition at line 408 of file cpthreads.c.

References Cpthread_mutexattr_s::magic.

int Cpthread_mutexattr_getpshared ( Cpthread_mutexattr_t mattr,
int pshared 
)

Definition at line 415 of file cpthreads.c.

References Cpthread_mutexattr_s::magic, and Cpthread_mutexattr_s::pshared.

int Cpthread_mutexattr_setpshared ( Cpthread_mutexattr_t mattr,
int  pshared 
)

Definition at line 422 of file cpthreads.c.

References Cpthread_mutexattr_s::magic, and Cpthread_mutexattr_s::pshared.

int Cpthread_mutex_init ( Cpthread_mutex_t mutex,
Cpthread_mutexattr_t mattr 
)

int Cpthread_mutex_destroy ( Cpthread_mutex_t mutex  ) 

int Cpthread_mutex_lock ( Cpthread_mutex_t mutex  ) 

int Cpthread_mutex_trylock ( Cpthread_mutex_t mutex  ) 

int Cpthread_mutex_unlock ( Cpthread_mutex_t mutex  ) 

int Cpthread_condattr_init ( Cpthread_condattr_t cattr  ) 

Definition at line 487 of file cpthreads.c.

References Cpthread_condattr_s::magic.

int Cpthread_condattr_destroy ( Cpthread_condattr_t cattr  ) 

Definition at line 493 of file cpthreads.c.

References Cpthread_condattr_s::magic.

int Cpthread_condattr_getpshared ( Cpthread_condattr_t cattr,
int pshared 
)

Definition at line 499 of file cpthreads.c.

References Cpthread_condattr_s::magic, and Cpthread_condattr_s::pshared.

int Cpthread_condattr_setpshared ( Cpthread_condattr_t cattr,
int  pshared 
)

Definition at line 506 of file cpthreads.c.

References Cpthread_condattr_s::magic, and Cpthread_condattr_s::pshared.

int Cpthread_cond_init ( Cpthread_cond_t cond,
Cpthread_condattr_t cattr 
)

int Cpthread_cond_destroy ( Cpthread_cond_t cond  ) 

int Cpthread_cond_wait ( Cpthread_cond_t cond,
Cpthread_mutex_t mutex 
)

int Cpthread_cond_signal ( Cpthread_cond_t cond  ) 

int Cpthread_cond_broadcast ( Cpthread_cond_t cond  ) 

int Cpthread_once ( Cpthread_once_t once,
void(*)(void)  fn 
)

Definition at line 374 of file cpthreads.c.

References CmiMyRank(), CmiPrintf(), and Cpthread_once_t::flag.

int Cpthread_init (  ) 

Definition at line 583 of file cpthreads.c.

void Cpthread_initialize (  ) 

void Cpthread_start_main ( CmiStartFn  fn,
int  argc,
char **  argv 
)


Generated on Fri May 25 08:00:44 2012 for Charm++ by  doxygen 1.5.5