Functions | Variables
pthreads.c File Reference
#include "eus.h"
#include <errno.h>
Include dependency graph for pthreads.c:

Go to the source code of this file.

Functions

int rw_rdlock (rwlock_t *rw)
 
int rw_unlock (rwlock_t *rw)
 
int rw_wrlock (rwlock_t *rw)
 
int rwlock_destroy (rwlock_t *rw)
 
int rwlock_init (rwlock_t *rw, int c, void *d)
 
int sema_destroy (sema_t *sem)
 
int sema_init (sema_t *sem, unsigned int c, int d, void *e)
 
int sema_post (sema_t *sem)
 
int sema_trywait (sema_t *sem)
 
int sema_wait (sema_t *sem)
 
int thr_continue (int tid)
 
int thr_create (void *base, size_t size, void(*func)(), void *args, long flags, int *tid)
 
int thr_getprio (int tid, int *prio)
 
int thr_join (int tid, int *depature, void **status)
 
int thr_kill (int tid, int sig)
 
int thr_self ()
 
int thr_setprio (int tid, int prio)
 
int thr_suspend (int tid)
 

Variables

pthread_t thread_table [MAXTHREAD][2]
 

Function Documentation

◆ rw_rdlock()

int rw_rdlock ( rwlock_t rw)

Definition at line 179 of file pthreads.c.

◆ rw_unlock()

int rw_unlock ( rwlock_t rw)

Definition at line 197 of file pthreads.c.

◆ rw_wrlock()

int rw_wrlock ( rwlock_t rw)

Definition at line 188 of file pthreads.c.

◆ rwlock_destroy()

int rwlock_destroy ( rwlock_t rw)

Definition at line 172 of file pthreads.c.

◆ rwlock_init()

int rwlock_init ( rwlock_t rw,
int  c,
void *  d 
)

Definition at line 164 of file pthreads.c.

◆ sema_destroy()

int sema_destroy ( sema_t sem)

Definition at line 118 of file pthreads.c.

◆ sema_init()

int sema_init ( sema_t sem,
unsigned int  c,
int  d,
void *  e 
)

Definition at line 111 of file pthreads.c.

◆ sema_post()

int sema_post ( sema_t sem)

Definition at line 148 of file pthreads.c.

◆ sema_trywait()

int sema_trywait ( sema_t sem)

Definition at line 133 of file pthreads.c.

◆ sema_wait()

int sema_wait ( sema_t sem)

Definition at line 124 of file pthreads.c.

◆ thr_continue()

int thr_continue ( int  tid)

Definition at line 58 of file pthreads.c.

◆ thr_create()

int thr_create ( void *  base,
size_t  size,
void(*)()  func,
void *  args,
long  flags,
int *  tid 
)

Definition at line 43 of file pthreads.c.

◆ thr_getprio()

int thr_getprio ( int  tid,
int *  prio 
)

Definition at line 21 of file pthreads.c.

◆ thr_join()

int thr_join ( int  tid,
int *  depature,
void **  status 
)

Definition at line 75 of file pthreads.c.

◆ thr_kill()

int thr_kill ( int  tid,
int  sig 
)

Definition at line 70 of file pthreads.c.

◆ thr_self()

int thr_self ( void  )

Definition at line 12 of file pthreads.c.

◆ thr_setprio()

int thr_setprio ( int  tid,
int  prio 
)

Definition at line 30 of file pthreads.c.

◆ thr_suspend()

int thr_suspend ( int  tid)

Definition at line 64 of file pthreads.c.

Variable Documentation

◆ thread_table

pthread_t thread_table[MAXTHREAD][2]

Definition at line 10 of file pthreads.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Mon Feb 28 2022 22:18:28