#include <errno.h>
#include "rlwthread.h"
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <pthread.h>
Go to the source code of this file.
Macros | |
#define | USE_OLD_JOIN |
#define | TESTINGx |
Functions | |
int | rlwthread_attr_init (pthread_attr_t *attr) |
int | rlwthread_create (pthread_t *tid, const pthread_attr_t *attr, void *(*func)(void *), void *arg) |
void | rlwthread_close_handle (pthread_t *tid) |
void | rlwthread_exit (void *status) |
int | rlwthread_join (pthread_t tid, void **status) |
int | rlwthread_mutex_init (pthread_mutex_t *mptr, const pthread_mutexattr_t *attr) |
int | rlwthread_mutex_destroy (pthread_mutex_t *mptr) |
int | rlwthread_mutex_lock (pthread_mutex_t *mptr) |
WINBASEAPI BOOL WINAPI | TryEnterCriticalSection (LPCRITICAL_SECTION lpCriticalSection) |
int | rlwthread_mutex_trylock (pthread_mutex_t *mptr) |
int | rlwthread_mutex_unlock (pthread_mutex_t *mptr) |
int | rlwthread_cancel (pthread_t tid) |
int | rlwrapinit_semaphore (WSEMAPHORE *s, int cmax) |
int | rlwrapdestroy_semaphore (WSEMAPHORE *s) |
int | rlwrapincrement_semaphore (WSEMAPHORE *s) |
int | rlwrapwait_semaphore (WSEMAPHORE *s) |
int | rlwthread_sleep (long msec) |
void | rlsleep (long msec) |
#define TESTINGx |
Definition at line 401 of file rlwthread.cpp.
#define USE_OLD_JOIN |
Definition at line 112 of file rlwthread.cpp.
void rlsleep | ( | long | msec | ) |
Definition at line 393 of file rlwthread.cpp.
int rlwrapdestroy_semaphore | ( | WSEMAPHORE * | s | ) |
Definition at line 291 of file rlwthread.cpp.
int rlwrapincrement_semaphore | ( | WSEMAPHORE * | s | ) |
Definition at line 307 of file rlwthread.cpp.
int rlwrapinit_semaphore | ( | WSEMAPHORE * | s, |
int | cmax | ||
) |
Definition at line 265 of file rlwthread.cpp.
int rlwrapwait_semaphore | ( | WSEMAPHORE * | s | ) |
Definition at line 338 of file rlwthread.cpp.
int rlwthread_attr_init | ( | pthread_attr_t * | attr | ) |
Definition at line 36 of file rlwthread.cpp.
int rlwthread_cancel | ( | pthread_t | tid | ) |
Definition at line 250 of file rlwthread.cpp.
void rlwthread_close_handle | ( | pthread_t * | tid | ) |
Definition at line 79 of file rlwthread.cpp.
int rlwthread_create | ( | pthread_t * | tid, |
const pthread_attr_t * | attr, | ||
void *(*)(void *) | func, | ||
void * | arg | ||
) |
Definition at line 54 of file rlwthread.cpp.
void rlwthread_exit | ( | void * | status | ) |
Definition at line 94 of file rlwthread.cpp.
int rlwthread_join | ( | pthread_t | tid, |
void ** | status | ||
) |
Definition at line 113 of file rlwthread.cpp.
int rlwthread_mutex_destroy | ( | pthread_mutex_t * | mptr | ) |
Definition at line 175 of file rlwthread.cpp.
int rlwthread_mutex_init | ( | pthread_mutex_t * | mptr, |
const pthread_mutexattr_t * | attr | ||
) |
Definition at line 158 of file rlwthread.cpp.
int rlwthread_mutex_lock | ( | pthread_mutex_t * | mptr | ) |
Definition at line 190 of file rlwthread.cpp.
int rlwthread_mutex_trylock | ( | pthread_mutex_t * | mptr | ) |
Definition at line 212 of file rlwthread.cpp.
int rlwthread_mutex_unlock | ( | pthread_mutex_t * | mptr | ) |
Definition at line 235 of file rlwthread.cpp.
int rlwthread_sleep | ( | long | msec | ) |
Definition at line 363 of file rlwthread.cpp.
WINBASEAPI BOOL WINAPI TryEnterCriticalSection | ( | LPCRITICAL_SECTION | lpCriticalSection | ) |