minor fixes for safecopy & safemap tests
[minix.git] / servers / vfs / threads.h
blobcddb73e9ac96b6feba3b1e3ff37db52589d40ad8
1 #ifndef __VFS_WORKERS_H__
2 #define __VFS_WORKERS_H__
3 #include <minix/mthread.h>
4 #include "job.h"
6 #define thread_t mthread_thread_t
7 #define mutex_t mthread_mutex_t
8 #define cond_t mthread_cond_t
9 #define attr_t mthread_attr_t
11 #define threads_init mthread_init
12 #define yield mthread_yield
13 #define yield_all mthread_yield_all
15 #define mutex_init mthread_mutex_init
16 #define mutex_destroy mthread_mutex_destroy
17 #define mutex_lock mthread_mutex_lock
18 #define mutex_trylock mthread_mutex_trylock
19 #define mutex_unlock mthread_mutex_unlock
21 #define cond_init mthread_cond_init
22 #define cond_destroy mthread_cond_destroy
23 #define cond_wait mthread_cond_wait
24 #define cond_signal mthread_cond_signal
26 struct worker_thread {
27 thread_t w_tid;
28 mutex_t w_event_mutex;
29 cond_t w_event;
30 struct job w_job;
31 struct fproc *w_fp;
32 message *w_fs_sendrec;
33 message *w_drv_sendrec;
34 endpoint_t w_task;
35 struct dmap *w_dmap;
36 struct worker_thread *w_next;
39 #endif