summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/eio.c b/eio.c
index 937c066..1c1806e 100644
--- a/eio.c
+++ b/eio.c
@@ -224,10 +224,10 @@ static volatile unsigned int nready; /* reqlock */
static volatile unsigned int npending; /* reqlock */
static volatile unsigned int max_idle = 4;
-static mutex_t wrklock = X_MUTEX_INIT;
-static mutex_t reslock = X_MUTEX_INIT;
-static mutex_t reqlock = X_MUTEX_INIT;
-static cond_t reqwait = X_COND_INIT;
+static xmutex_t wrklock = X_MUTEX_INIT;
+static xmutex_t reslock = X_MUTEX_INIT;
+static xmutex_t reqlock = X_MUTEX_INIT;
+static xcond_t reqwait = X_COND_INIT;
#if !HAVE_PREADWRITE
/*
@@ -235,7 +235,7 @@ static cond_t reqwait = X_COND_INIT;
* normal read/write by using a mutex. slows down execution a lot,
* but that's your problem, not mine.
*/
-static mutex_t preadwritelock = X_MUTEX_INIT;
+static xmutex_t preadwritelock = X_MUTEX_INIT;
#endif
typedef struct etp_worker
@@ -243,7 +243,7 @@ typedef struct etp_worker
/* locked by wrklock */
struct etp_worker *prev, *next;
- thread_t tid;
+ xthread_t tid;
/* locked by reslock, reqlock or wrklock */
ETP_REQ *req; /* currently processed request */