#include <errno.h>
Go to the source code of this file.
Classes | |
struct | _rwlock |
struct | _sema |
struct | thread_arg |
Typedefs | |
typedef struct _rwlock | rwlock_t |
typedef struct _sema | sema_t |
Functions | |
int | mthread (context *ctx, pointer mod) |
int | rw_rdlock (rwlock_t *) |
int | rw_unlock (rwlock_t *) |
int | rw_wrlock (rwlock_t *) |
int | rwlock_destroy (rwlock_t *) |
int | rwlock_init (rwlock_t *, int, void *) |
int | sema_destroy (sema_t *) |
int | sema_init (sema_t *, unsigned int, int, void *) |
int | sema_port (sema_t *) |
int | sema_trywait (sema_t *) |
int | sema_wait (sema_t *) |
int | thr_continue (int) |
int | thr_create (void *, size_t, void(*)(), void *, long, int *) |
int | thr_getprio (int tid, int *prio) |
int | thr_kill (int, int) |
unsigned int | thr_self () |
int | thr_setprio (int, int) |
int | thr_suspend (int) |
Variables | |
mutex_t | alloc_lock |
mutex_t | free_thread_lock |
sema_t | free_thread_sem |
rwlock_t | gc_lock |
mutex_t | mark_lock |
int | mark_lock_thread |
char * | mark_locking |
mutex_t | qsort_lock |
mutex_t | qthread_lock |
int rw_rdlock | ( | rwlock_t * | ) |
Definition at line 179 of file pthreads.c.
int rw_unlock | ( | rwlock_t * | ) |
Definition at line 197 of file pthreads.c.
int rw_wrlock | ( | rwlock_t * | ) |
Definition at line 188 of file pthreads.c.
int rwlock_destroy | ( | rwlock_t * | ) |
Definition at line 172 of file pthreads.c.
int rwlock_init | ( | rwlock_t * | , |
int | , | ||
void * | |||
) |
Definition at line 164 of file pthreads.c.
int sema_destroy | ( | sema_t * | ) |
Definition at line 118 of file pthreads.c.
int sema_init | ( | sema_t * | , |
unsigned | int, | ||
int | , | ||
void * | |||
) |
Definition at line 111 of file pthreads.c.
int sema_port | ( | sema_t * | ) |
int sema_trywait | ( | sema_t * | ) |
Definition at line 133 of file pthreads.c.
int sema_wait | ( | sema_t * | ) |
Definition at line 124 of file pthreads.c.
int thr_continue | ( | int | ) |
Definition at line 58 of file pthreads.c.
int thr_create | ( | void * | , |
size_t | , | ||
void(*)() | , | ||
void * | , | ||
long | , | ||
int * | |||
) |
Definition at line 43 of file pthreads.c.
int thr_getprio | ( | int | tid, |
int * | prio | ||
) |
Definition at line 21 of file pthreads.c.
int thr_kill | ( | int | , |
int | |||
) |
Definition at line 70 of file pthreads.c.
int thr_setprio | ( | int | , |
int | |||
) |
Definition at line 30 of file pthreads.c.
int thr_suspend | ( | int | ) |
Definition at line 64 of file pthreads.c.
mutex_t alloc_lock |
Definition at line 42 of file memory.mutex.c.