summaryrefslogtreecommitdiff
path: root/ot_mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_mutex.h')
-rw-r--r--ot_mutex.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ot_mutex.h b/ot_mutex.h
index 8c2e356..b2668ce 100644
--- a/ot_mutex.h
+++ b/ot_mutex.h
@@ -32,9 +32,11 @@ typedef enum {
32 TASK_FULLSCRAPE_TPB_ASCII = 0x0202, 32 TASK_FULLSCRAPE_TPB_ASCII = 0x0202,
33 TASK_FULLSCRAPE_TPB_URLENCODED = 0x0203, 33 TASK_FULLSCRAPE_TPB_URLENCODED = 0x0203,
34 34
35 TASK_SYNC = 0x0300, 35 TASK_CLEAN = 0x0300,
36 36
37 TASK_DMEM = 0x0400, 37 TASK_SYNC = 0x0400,
38
39 TASK_DMEM = 0x0500,
38 40
39 TASK_DONE = 0x0f00, 41 TASK_DONE = 0x0f00,
40 TASK_MASK = 0xff00 42 TASK_MASK = 0xff00
@@ -44,6 +46,7 @@ typedef unsigned long ot_taskid;
44 46
45int mutex_workqueue_pushtask( int64 socket, ot_tasktype tasktype ); 47int mutex_workqueue_pushtask( int64 socket, ot_tasktype tasktype );
46void mutex_workqueue_canceltask( int64 socket ); 48void mutex_workqueue_canceltask( int64 socket );
49void mutex_workqueue_pushsuccess( ot_taskid taskid );
47ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ); 50ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype );
48int mutex_workqueue_pushresult( ot_taskid taskid, int iovec_entries, struct iovec *iovector ); 51int mutex_workqueue_pushresult( ot_taskid taskid, int iovec_entries, struct iovec *iovector );
49int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovector ); 52int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovector );