aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-30 16:03:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-30 16:03:07 +0200
commitaf5ed67002b7031e1735968674bacb5ee868165f (patch)
tree7cb6d0101168c58ebb2247e3ec79b33f816e8b1e /libbuild2/algorithm.cxx
parent7c426821e7fb4919e84ec20bd2f88481db665e90 (diff)
Cutoff diagnostics stack when switching to nested context
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r--libbuild2/algorithm.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx
index 7a616a5..511850d 100644
--- a/libbuild2/algorithm.cxx
+++ b/libbuild2/algorithm.cxx
@@ -142,6 +142,10 @@ namespace build2
// target_lock
//
+ // Note that the stack may contain locks for targets from multiple nested
+ // contexts. This should be harmless (deadlock detection-wise) since
+ // contexts are assumed non-overlapping.
+ //
static
#ifdef __cpp_thread_local
thread_local