소스 검색

Separate out failed, scheduled and prefetched fields

They are set at different times with different locking conditions, so
cannot use bitfields.
Samuel Thibault 4 년 전
부모
커밋
326cecdb55
1개의 변경된 파일9개의 추가작업 그리고 3개의 파일을 삭제
  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