aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-12 08:33:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-12 08:33:28 +0200
commitce177a4b12f2fef490683e53ccc9ee8f4d3e0bd6 (patch)
tree34aae6ca8abb182fdf20a59b6ab3a08ef1e1db55 /build2/algorithm.cxx
parentb01fde82ba1e70af68ac78607daf421334f60cc7 (diff)
Add workaround for Clang module import during preprocessing
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx
index 0dca9cc..658a6cd 100644
--- a/build2/algorithm.cxx
+++ b/build2/algorithm.cxx
@@ -126,12 +126,12 @@ namespace build2
// Wait for the count to drop below busy if someone is already working
// on this target.
//
- // We also unlock the phase for the duration of the wait. Why? Consider
- // this scenario: we are trying to match a dir{} target whose buildfile
- // still needs to be loaded. Let's say someone else started the match
- // before us. So we wait for their completion and they wait to switch
- // the phase to load. Which would result in a deadlock unless we release
- // the phase.
+ // We also unlock the phase for the duration of the wait. Why?
+ // Consider this scenario: we are trying to match a dir{} target whose
+ // buildfile still needs to be loaded. Let's say someone else started
+ // the match before us. So we wait for their completion and they wait
+ // to switch the phase to load. Which would result in a deadlock
+ // unless we release the phase.
//
if (e >= busy)
{