From 49ba269b9d09746e90e153f3e245eaf3f97e35cc Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 19 Nov 2007 21:10:53 +0000 Subject: Cleanup now moved to its own thread, too --- ot_mutex.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ot_mutex.h') 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 { TASK_FULLSCRAPE_TPB_ASCII = 0x0202, TASK_FULLSCRAPE_TPB_URLENCODED = 0x0203, - TASK_SYNC = 0x0300, + TASK_CLEAN = 0x0300, - TASK_DMEM = 0x0400, + TASK_SYNC = 0x0400, + + TASK_DMEM = 0x0500, TASK_DONE = 0x0f00, TASK_MASK = 0xff00 @@ -44,6 +46,7 @@ typedef unsigned long ot_taskid; int mutex_workqueue_pushtask( int64 socket, ot_tasktype tasktype ); void mutex_workqueue_canceltask( int64 socket ); +void mutex_workqueue_pushsuccess( ot_taskid taskid ); ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ); int mutex_workqueue_pushresult( ot_taskid taskid, int iovec_entries, struct iovec *iovector ); int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovector ); -- cgit v1.2.3