]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Introducing compression task flags
authorerdgeist <>
Thu, 22 Nov 2007 04:38:25 +0000 (04:38 +0000)
committererdgeist <>
Thu, 22 Nov 2007 04:38:25 +0000 (04:38 +0000)
ot_mutex.c
ot_mutex.h

index 5624c03858dc40f47887ebbc22fa50e64dedb22c..fb632d7f1541a293bee917d6fb6b491eeb89190a 100644 (file)
@@ -194,7 +194,7 @@ ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ) {
   while( !taskid ) {
     /* Skip to the first unassigned task this worker wants to do */
     task = tasklist;
-    while( task && ( ( ( TASK_MASK & task->tasktype ) != *tasktype ) || task->taskid ) )
+    while( task && ( ( ( TASK_CLASS_MASK & task->tasktype ) != *tasktype ) || task->taskid ) )
       task = task->next;
 
     /* If we found an outstanding task, assign a taskid to it
index fd45397e87dbc12e1faaf14448012addcba2543e..e2106be9d188eb8840befe341f0f17d3d7953d63 100644 (file)
@@ -40,7 +40,13 @@ typedef enum {
   TASK_DMEM                        = 0x0500,
 
   TASK_DONE                        = 0x0f00,
-  TASK_MASK                        = 0xff00
+
+  TASK_FLAG_GZIP                   = 0x1000,
+  TASK_FLAG_BZIP2                  = 0x2000,
+
+  TASK_TASK_MASK                   = 0x0fff,
+  TASK_CLASS_MASK                  = 0x0f00,
+  TASK_FLAGS_MASK                  = 0xf000
 } ot_tasktype;
 
 typedef unsigned long ot_taskid;