Anope IRC Services  Version 2.0
Data Structures | Functions
pthread.cpp File Reference
#include "pthread.h"
Include dependency graph for pthread.cpp:

Go to the source code of this file.

Data Structures

struct  ThreadInfo
 

Functions

static DWORD WINAPI entry_point (void *parameter)
 
int pthread_attr_init (pthread_attr_t *)
 
int pthread_attr_setdetachstate (pthread_attr_t *, int)
 
int pthread_create (pthread_t *thread, const pthread_attr_t *, void *(*entry)(void *), void *param)
 
int pthread_join (pthread_t thread, void **)
 
void pthread_exit (int i)
 
int pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *)
 
int pthread_mutex_destroy (pthread_mutex_t *mutex)
 
int pthread_mutex_lock (pthread_mutex_t *mutex)
 
int pthread_mutex_trylock (pthread_mutex_t *mutex)
 
int pthread_mutex_unlock (pthread_mutex_t *mutex)
 
int pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *)
 
int pthread_cond_destroy (pthread_cond_t *cond)
 
int pthread_cond_signal (pthread_cond_t *cond)
 
int pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex)
 

Function Documentation

static DWORD WINAPI entry_point ( void *  parameter)
static

Definition at line 16 of file pthread.cpp.

References ThreadInfo::entry, and ThreadInfo::param.

Referenced by pthread_create().

int pthread_attr_init ( pthread_attr_t )

Definition at line 24 of file pthread.cpp.

Referenced by get_engine_attr().

int pthread_attr_setdetachstate ( pthread_attr_t ,
int   
)

Definition at line 30 of file pthread.cpp.

Referenced by get_engine_attr().

int pthread_cond_destroy ( pthread_cond_t cond)

Definition at line 102 of file pthread.cpp.

Referenced by Condition::~Condition().

int pthread_cond_init ( pthread_cond_t cond,
const pthread_condattr_t  
)

Definition at line 94 of file pthread.cpp.

Referenced by Condition::Condition().

int pthread_cond_signal ( pthread_cond_t cond)

Definition at line 107 of file pthread.cpp.

Referenced by Condition::Wakeup().

int pthread_cond_wait ( pthread_cond_t cond,
pthread_mutex_t mutex 
)

Definition at line 112 of file pthread.cpp.

Referenced by Condition::Wait().

int pthread_create ( pthread_t thread,
const pthread_attr_t ,
void *(*)(void *)  entry,
void *  param 
)

Definition at line 36 of file pthread.cpp.

References ThreadInfo::entry, entry_point(), and ThreadInfo::param.

Referenced by Thread::Start().

void pthread_exit ( int  i)

Definition at line 60 of file pthread.cpp.

Referenced by entry_point(), and Thread::Exit().

int pthread_join ( pthread_t  thread,
void **   
)

Definition at line 52 of file pthread.cpp.

Referenced by Thread::Join().

int pthread_mutex_destroy ( pthread_mutex_t mutex)

Definition at line 71 of file pthread.cpp.

Referenced by Mutex::~Mutex().

int pthread_mutex_init ( pthread_mutex_t mutex,
const pthread_mutexattr_t  
)

Definition at line 65 of file pthread.cpp.

Referenced by Mutex::Mutex().

int pthread_mutex_lock ( pthread_mutex_t mutex)

Definition at line 77 of file pthread.cpp.

Referenced by Mutex::Lock().

int pthread_mutex_trylock ( pthread_mutex_t mutex)

Definition at line 83 of file pthread.cpp.

Referenced by Mutex::TryLock().

int pthread_mutex_unlock ( pthread_mutex_t mutex)

Definition at line 88 of file pthread.cpp.

Referenced by Mutex::Unlock().