diff options
| author | erdgeist <> | 2007-11-19 21:10:53 +0000 |
|---|---|---|
| committer | erdgeist <> | 2007-11-19 21:10:53 +0000 |
| commit | 49ba269b9d09746e90e153f3e245eaf3f97e35cc (patch) | |
| tree | f4847038b777d85dccc3f0ac594ef28d88f4ec40 /ot_mutex.h | |
| parent | 3528752c7b82d23b4cf9331a6df56e2cc8db9239 (diff) | |
Cleanup now moved to its own thread, too
Diffstat (limited to 'ot_mutex.h')
| -rw-r--r-- | ot_mutex.h | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -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 | ||
| 45 | int mutex_workqueue_pushtask( int64 socket, ot_tasktype tasktype ); | 47 | int mutex_workqueue_pushtask( int64 socket, ot_tasktype tasktype ); |
| 46 | void mutex_workqueue_canceltask( int64 socket ); | 48 | void mutex_workqueue_canceltask( int64 socket ); |
| 49 | void mutex_workqueue_pushsuccess( ot_taskid taskid ); | ||
| 47 | ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ); | 50 | ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ); |
| 48 | int mutex_workqueue_pushresult( ot_taskid taskid, int iovec_entries, struct iovec *iovector ); | 51 | int mutex_workqueue_pushresult( ot_taskid taskid, int iovec_entries, struct iovec *iovector ); |
| 49 | int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovector ); | 52 | int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovector ); |
