summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2015-04-24 14:25:17 -0700
committerScott Graham <scottmg@chromium.org>2015-04-24 14:25:22 -0700
commitdcdd042ca93fd0057d7e1b0eedfbab49790b2e00 (patch)
tree424a841744d5c80a1046f910c190cb953bb18351
parent6652258c2fa510f043d32be95ef4c44eaa2800dc (diff)
downloadninja-dcdd042ca93fd0057d7e1b0eedfbab49790b2e00.tar.gz
add comment
-rw-r--r--src/state.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.h b/src/state.h
index d7987ba..58fac13 100644
--- a/src/state.h
+++ b/src/state.h
@@ -71,6 +71,9 @@ struct Pool {
/// |current_use_| is the total of the weights of the edges which are
/// currently scheduled in the Plan (i.e. the edges in Plan::ready_).
+ /// This is generally <= to depth_. It can exceed it very briefly when the
+ /// pool is notified about an edge that's about to be finished that will
+ /// not actually be started. See Plan::NodeFinished().
int current_use_;
int depth_;