Browse Source

Separate out failed, scheduled and prefetched fields

They are set at different times with different locking conditions, so
cannot use bitfields.
Samuel Thibault 4 years ago
parent
commit
326cecdb55
1 changed files with 9 additions and 3 deletions
  1. 9 3
      include/starpu_task.h

+ 9 - 3
include/starpu_task.h

@@ -1050,15 +1050,21 @@ struct starpu_task
 
 	   Set by StarPU.
 	*/
-	unsigned failed:1;
+	unsigned char failed;
 
 	/**
 	   Whether the scheduler has pushed the task on some queue
 
 	   Set by StarPU.
 	*/
-	unsigned scheduled:1;
-	unsigned prefetched:1;
+	unsigned char scheduled;
+
+	/**
+	   Whether the scheduler has prefetched the task's data
+
+	   Set by StarPU.
+	*/
+	unsigned char prefetched;
 
 	/**
 	   Optional field. If the field