Go to the documentation of this file.
19 #include <lwp/lwpmachdep.h>
20 #include <lwp/stackdep.h>
21 #define USYNC_THREAD 0
27 #define USYNC_THREAD 0
48 typedef mon_t mutex_t;
52 #define USYNC_THREAD 0
53 #define THR_SUSPENDED LWPSUSPEND
54 #define thr_exit(x) pod_exit(x)
55 #define thr_join(x,y,z) lwp_join(x)
56 #define mutex_init(x,y,z) mon_create(x)
57 #define mutex_destroy(x) mon_destroy(*(x))
58 #define mutex_lock(x) mon_enter(*(x))
59 #define mutex_unlock(x) mon_exit(*(x))
60 #define mutex_trylock(x) mon_cond_enter(*(x))
61 #define cond_init(x,y) cv_create(x,*(y))
62 #define cond_destroy(x) cv_destroy(*(x))
63 #define cond_wait(x,y) cv_wait(*(x))
64 #define cond_signal(x) cv_notify(*(x))
65 #define cond_broadcast(x) cv_broadcast(*(x))
73 typedef pthread_t thread_t;
74 typedef pthread_mutex_t mutex_t;
75 typedef pthread_cond_t cond_t;
76 #define thr_exit(x) pthread_exit(x)
77 #define thr_join(x,y,z) pthread_join(x,z)
78 #define mutex_init(x,y,z) pthread_mutex_init(x,y)
79 #define mutex_lock pthread_mutex_lock
80 #define mutex_trylock pthread_mutex_trylock
81 #define mutex_unlock pthread_mutex_unlock
82 #define cond_wait pthread_cond_wait
83 #define cond_signal pthread_cond_signal
84 #define cond_broadcast pthread_cond_broadcast
112 extern int thr_create(
void *,
size_t,
void (*)(),
void *,
long,
int *);
int rwlock_init(rwlock_t *, int, void *)
int rwlock_destroy(rwlock_t *)
int sema_init(sema_t *, unsigned int, int, void *)
int rw_wrlock(rwlock_t *)
int thr_setprio(int, int)
int sema_trywait(sema_t *)
int rw_unlock(rwlock_t *)
int thr_getprio(int tid, int *prio)
int sema_destroy(sema_t *)
int thr_create(void *, size_t, void(*)(), void *, long, int *)
int sema_post(sema_t *sem)
int rw_rdlock(rwlock_t *)
int mthread(context *ctx, pointer mod)
euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43