#include "rldefine.h"
#include <windows.h>
#include <winbase.h>
#include <stddef.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | __sched_param |
struct | pthread_attr_t |
struct | WSEMAPHORE |
Typedefs | |
typedef unsigned long int | pthread_t |
typedef struct __sched_param | SCHED_PARAM |
typedef HANDLE | pthread_mutex_t |
typedef long | pthread_mutexattr_t |
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) |
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) |
typedef HANDLE pthread_mutex_t |
Definition at line 61 of file rlwthread.h.
typedef long pthread_mutexattr_t |
Definition at line 63 of file rlwthread.h.
typedef unsigned long int pthread_t |
Definition at line 40 of file rlwthread.h.
typedef struct __sched_param SCHED_PARAM |
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.