LAL  7.5.0.1-08ee4f4
qthread.c File Reference

Prototypes

int pthread_once (pthread_once_t *once_control, void(*init_routine)(void))
 
int pthread_key_create (pthread_key_t *key, destr_function destr)
 
int pthread_key_delete (pthread_key_t key)
 
int pthread_setspecific (pthread_key_t key, const void *pointer)
 
void * pthread_getspecific (pthread_key_t key)
 
int pthread_cancel (pthread_t thread)
 
int pthread_create (pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
 
int pthread_join (pthread_t thread_id, void **thread_return)
 
int pthread_sigmask (int how, const sigset_t *newmask, sigset_t *oldmask)
 

Go to the source code of this file.

Data Structures

struct  pthread_key_struct
 

Typedefs

typedef void(* destr_function) (void *)
 

Enumerations

enum  { NEVER = 0 , IN_PROGRESS = 1 , DONE = 2 }
 

Variables

int dummy_have_qthread
 
static struct pthread_key_struct pthread_keys [PTHREAD_KEYS_MAX]
 
static void * pthread_key_values [PTHREAD_KEYS_MAX]
 

Typedef Documentation

◆ destr_function

typedef void(* destr_function) (void *)

Definition at line 66 of file qthread.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NEVER 
IN_PROGRESS 
DONE 

Definition at line 50 of file qthread.c.

Function Documentation

◆ pthread_once()

int pthread_once ( pthread_once_t *  once_control,
void(*)(void)  init_routine 
)

Definition at line 52 of file qthread.c.

◆ pthread_key_create()

int pthread_key_create ( pthread_key_t *  key,
destr_function  destr 
)

Definition at line 82 of file qthread.c.

◆ pthread_key_delete()

int pthread_key_delete ( pthread_key_t  key)

Definition at line 108 of file qthread.c.

◆ pthread_setspecific()

int pthread_setspecific ( pthread_key_t  key,
const void *  pointer 
)

Definition at line 128 of file qthread.c.

◆ pthread_getspecific()

void* pthread_getspecific ( pthread_key_t  key)

Definition at line 143 of file qthread.c.

◆ pthread_cancel()

int pthread_cancel ( pthread_t  thread)

Definition at line 163 of file qthread.c.

◆ pthread_create()

int pthread_create ( pthread_t *  thread,
const pthread_attr_t *  attr,
void *(*)(void *)  start_routine,
void *  arg 
)

Definition at line 169 of file qthread.c.

◆ pthread_join()

int pthread_join ( pthread_t  thread_id,
void **  thread_return 
)

Definition at line 177 of file qthread.c.

◆ pthread_sigmask()

int pthread_sigmask ( int  how,
const sigset_t *  newmask,
sigset_t *  oldmask 
)

Definition at line 184 of file qthread.c.

Variable Documentation

◆ dummy_have_qthread

int dummy_have_qthread

Definition at line 39 of file qthread.c.

◆ pthread_keys

struct pthread_key_struct pthread_keys[PTHREAD_KEYS_MAX]
static
Initial value:
=
{ { 0, NULL } }

Definition at line 66 of file qthread.c.

◆ pthread_key_values

void* pthread_key_values[PTHREAD_KEYS_MAX]
static

Definition at line 79 of file qthread.c.