summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-11-22 04:38:25 +0000
committererdgeist <>2007-11-22 04:38:25 +0000
commit4bf12406fb38d0ec0f6f9d156334d73e1b671830 (patch)
treebc5b9e43305c38596d487909d0d6a710276603c2
parentc09ad325cc5a7f862018ded951ee934c7fc6f348 (diff)
Introducing compression task flags
-rw-r--r--ot_mutex.c2
-rw-r--r--ot_mutex.h8
2 files changed, 8 insertions, 2 deletions
diff --git a/ot_mutex.c b/ot_mutex.c
index 5624c03..fb632d7 100644
--- a/ot_mutex.c
+++ b/ot_mutex.c
@@ -194,7 +194,7 @@ ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ) {
194 while( !taskid ) { 194 while( !taskid ) {
195 /* Skip to the first unassigned task this worker wants to do */ 195 /* Skip to the first unassigned task this worker wants to do */
196 task = tasklist; 196 task = tasklist;
197 while( task && ( ( ( TASK_MASK & task->tasktype ) != *tasktype ) || task->taskid ) ) 197 while( task && ( ( ( TASK_CLASS_MASK & task->tasktype ) != *tasktype ) || task->taskid ) )
198 task = task->next; 198 task = task->next;
199 199
200 /* If we found an outstanding task, assign a taskid to it 200 /* If we found an outstanding task, assign a taskid to it
diff --git a/ot_mutex.h b/ot_mutex.h
index fd45397..e2106be 100644
--- a/ot_mutex.h
+++ b/ot_mutex.h
@@ -40,7 +40,13 @@ typedef enum {
40 TASK_DMEM = 0x0500, 40 TASK_DMEM = 0x0500,
41 41
42 TASK_DONE = 0x0f00, 42 TASK_DONE = 0x0f00,
43 TASK_MASK = 0xff00 43
44 TASK_FLAG_GZIP = 0x1000,
45 TASK_FLAG_BZIP2 = 0x2000,
46
47 TASK_TASK_MASK = 0x0fff,
48 TASK_CLASS_MASK = 0x0f00,
49 TASK_FLAGS_MASK = 0xf000
44} ot_tasktype; 50} ot_tasktype;
45 51
46typedef unsigned long ot_taskid; 52typedef unsigned long ot_taskid;