diff options
author | erdgeist <> | 2007-11-22 04:38:25 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-22 04:38:25 +0000 |
commit | 4bf12406fb38d0ec0f6f9d156334d73e1b671830 (patch) | |
tree | bc5b9e43305c38596d487909d0d6a710276603c2 | |
parent | c09ad325cc5a7f862018ded951ee934c7fc6f348 (diff) |
Introducing compression task flags
-rw-r--r-- | ot_mutex.c | 2 | ||||
-rw-r--r-- | ot_mutex.h | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -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 |
@@ -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 | ||
46 | typedef unsigned long ot_taskid; | 52 | typedef unsigned long ot_taskid; |