diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-26 09:14:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-02-26 09:14:37 +0200 |
commit | 4a2a3bd5033744c31377d31ca54be00622280a1b (patch) | |
tree | 616cc10d585dd40ab252f02b55ff44c694c18fb4 /libbuild2/context.ixx | |
parent | 75cedf46dba58e94b55678dc64bd4f77e23de5cd (diff) |
Add ability to request serialization from scheduler
In particular, this can be used to make sure no other recipe is being
executed in parallel with the caller.
Diffstat (limited to 'libbuild2/context.ixx')
-rw-r--r-- | libbuild2/context.ixx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/context.ixx b/libbuild2/context.ixx index 7b2a405..6c8c428 100644 --- a/libbuild2/context.ixx +++ b/libbuild2/context.ixx @@ -56,7 +56,7 @@ namespace build2 inline void wait_guard:: wait () { - phase_unlock u (*ctx, phase, true /* delay */); + phase_unlock u (phase ? ctx : nullptr, true /* delay */); ctx->sched->wait (start_count, *task_count, u); task_count = nullptr; } |