diff options
author | root <root> | 2011-09-27 12:36:19 +0000 |
---|---|---|
committer | root <root> | 2011-09-27 12:36:19 +0000 |
commit | 8388c0410a5d86b20a2c892ee875c0230c355cb1 (patch) | |
tree | 667c81c6103889e604418ad29c15bcfd52625f42 | |
parent | 49ed69f1c68dcaf470bdbbe15f2e2b1ba025d166 (diff) |
*** empty log message ***
-rw-r--r-- | eio.c | 10 | ||||
-rw-r--r-- | eio.h | 2 |
2 files changed, 12 insertions, 0 deletions
@@ -2476,6 +2476,16 @@ eio_execute (etp_worker *self, eio_req *req) #ifndef EIO_NO_WRAPPERS +eio_req *eio_wd_open (const char *path, int pri, eio_cb cb, void *data) +{ + REQ (EIO_WD_OPEN); PATH; SEND; +} + +eio_req *eio_wd_close (eio_wd wd, int pri, eio_cb cb, void *data) +{ + REQ (EIO_WD_CLOSE); req->wd = wd; SEND; +} + eio_req *eio_nop (int pri, eio_cb cb, void *data) { REQ (EIO_NOP); SEND; @@ -312,6 +312,8 @@ unsigned int eio_nthreads (void); /* number of worker threads in use currently * /* convenience wrappers */ #ifndef EIO_NO_WRAPPERS +eio_req *eio_wd_open (const char *path, int pri, eio_cb cb, void *data); /* result=wd */ +eio_req *eio_wd_close (eio_wd wd, int pri, eio_cb cb, void *data); eio_req *eio_nop (int pri, eio_cb cb, void *data); /* does nothing except go through the whole process */ eio_req *eio_busy (eio_tstamp delay, int pri, eio_cb cb, void *data); /* ties a thread for this long, simulating busyness */ eio_req *eio_sync (int pri, eio_cb cb, void *data); |