Anope IRC Services  Version 2.0
Macros | Typedefs | Functions
pthread.h File Reference
#include <Windows.h>
Include dependency graph for pthread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PTHREAD_CREATE_JOINABLE   0
 

Typedefs

typedef HANDLE pthread_t
 
typedef CRITICAL_SECTION pthread_mutex_t
 
typedef HANDLE pthread_cond_t
 
typedef int pthread_attr_t
 
typedef void pthread_mutexattr_t
 
typedef void pthread_condattr_t
 

Functions

int pthread_attr_init (pthread_attr_t *)
 
int pthread_attr_setdetachstate (pthread_attr_t *, int)
 
int pthread_create (pthread_t *, const pthread_attr_t *, void *(*)(void *), void *)
 
int pthread_join (pthread_t, void **)
 
void pthread_exit (int)
 
int pthread_mutex_init (pthread_mutex_t *, const pthread_mutexattr_t *)
 
int pthread_mutex_destroy (pthread_mutex_t *)
 
int pthread_mutex_lock (pthread_mutex_t *)
 
int pthread_mutex_trylock (pthread_mutex_t *)
 
int pthread_mutex_unlock (pthread_mutex_t *)
 
int pthread_cond_init (pthread_cond_t *, const pthread_condattr_t *)
 
int pthread_cond_destroy (pthread_cond_t *)
 
int pthread_cond_signal (pthread_cond_t *)
 
int pthread_cond_wait (pthread_cond_t *, pthread_mutex_t *)
 

Macro Definition Documentation

#define PTHREAD_CREATE_JOINABLE   0

Definition at line 17 of file pthread.h.

Referenced by get_engine_attr().

Typedef Documentation

typedef int pthread_attr_t

Definition at line 13 of file pthread.h.

typedef HANDLE pthread_cond_t

Definition at line 12 of file pthread.h.

typedef void pthread_condattr_t

Definition at line 15 of file pthread.h.

typedef CRITICAL_SECTION pthread_mutex_t

Definition at line 11 of file pthread.h.

typedef void pthread_mutexattr_t

Definition at line 14 of file pthread.h.

typedef HANDLE pthread_t

Definition at line 10 of file pthread.h.

Function Documentation

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 )

Definition at line 102 of file pthread.cpp.

Referenced by Condition::~Condition().

int pthread_cond_init ( pthread_cond_t ,
const pthread_condattr_t  
)

Definition at line 94 of file pthread.cpp.

Referenced by Condition::Condition().

int pthread_cond_signal ( pthread_cond_t )

Definition at line 107 of file pthread.cpp.

Referenced by Condition::Wakeup().

int pthread_cond_wait ( pthread_cond_t ,
pthread_mutex_t  
)

Definition at line 112 of file pthread.cpp.

Referenced by Condition::Wait().

int pthread_create ( pthread_t ,
const pthread_attr_t ,
void *  *)(void *,
void *   
)
void pthread_exit ( int  )

Definition at line 60 of file pthread.cpp.

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

int pthread_join ( pthread_t  ,
void **   
)

Definition at line 52 of file pthread.cpp.

Referenced by Thread::Join().

int pthread_mutex_destroy ( pthread_mutex_t )

Definition at line 71 of file pthread.cpp.

Referenced by Mutex::~Mutex().

int pthread_mutex_init ( pthread_mutex_t ,
const pthread_mutexattr_t  
)

Definition at line 65 of file pthread.cpp.

Referenced by Mutex::Mutex().

int pthread_mutex_lock ( pthread_mutex_t )

Definition at line 77 of file pthread.cpp.

Referenced by Mutex::Lock().

int pthread_mutex_trylock ( pthread_mutex_t )

Definition at line 83 of file pthread.cpp.

Referenced by Mutex::TryLock().

int pthread_mutex_unlock ( pthread_mutex_t )

Definition at line 88 of file pthread.cpp.

Referenced by Mutex::Unlock().