From ad9cdb9b172ecd7acf5e55b60f3f77626d72f14f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 May 2021 09:02:17 +0200 Subject: Do lazy allocation of shadow task queues --- libbuild2/scheduler.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libbuild2/scheduler.hxx') diff --git a/libbuild2/scheduler.hxx b/libbuild2/scheduler.hxx index b85d353..da3f0c0 100644 --- a/libbuild2/scheduler.hxx +++ b/libbuild2/scheduler.hxx @@ -700,6 +700,9 @@ namespace build2 // tail, if enabled. If the mark is hit, then it is disabled until the // queue becomes empty or it is reset by a push. // + // Note also that the data array can be NULL (lazy allocation) and one + // must make sure it's allocated before calling push(). + // struct task_queue_data { size_t head = 0; -- cgit v1.1