tools/llvm: Do not build with symbols
[minix3.git] / minix / servers / vfs / threads.h
blobb4a30689db4c12f22b900c07145e2ff3b0295dc5
1 #ifndef __VFS_WORKERS_H__
2 #define __VFS_WORKERS_H__
3 #include <minix/mthread.h>
5 #define thread_t mthread_thread_t
6 #define mutex_t mthread_mutex_t
7 #define cond_t mthread_cond_t
8 #define attr_t mthread_attr_t
10 #define yield mthread_yield
11 #define yield_all mthread_yield_all
13 #define mutex_init mthread_mutex_init
14 #define mutex_destroy mthread_mutex_destroy
15 #define mutex_lock mthread_mutex_lock
16 #define mutex_trylock mthread_mutex_trylock
17 #define mutex_unlock mthread_mutex_unlock
19 #define cond_init mthread_cond_init
20 #define cond_destroy mthread_cond_destroy
21 #define cond_wait mthread_cond_wait
22 #define cond_signal mthread_cond_signal
24 struct fproc;
26 struct worker_thread {
27 thread_t w_tid;
28 mutex_t w_event_mutex;
29 cond_t w_event;
30 struct fproc *w_fp;
31 message w_m_in;
32 message w_m_out;
33 int w_err_code;
34 message *w_sendrec;
35 message *w_drv_sendrec;
36 endpoint_t w_task;
37 struct dmap *w_dmap;
38 struct worker_thread *w_next;
41 #endif