diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-04-08 14:27:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-04-08 14:27:25 +0200 |
commit | 7376287554e30aa0b74136bf6c16566f6bda80cd (patch) | |
tree | 13b323d5a0b9eca9c5a3648aa099c48a80eb889c /libbuild2/context.hxx | |
parent | 70f7fd69b448263fc27b9dceba1663810f4885ab (diff) |
Fix race in phase lock contention counting
Diffstat (limited to 'libbuild2/context.hxx')
-rw-r--r-- | libbuild2/context.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx index 0595413..fbdf9b8 100644 --- a/libbuild2/context.hxx +++ b/libbuild2/context.hxx @@ -46,7 +46,8 @@ namespace build2 // Statistics. // public: - size_t contention = 0; // # of contentious phase (re)locks. + size_t contention = 0; // # of contentious phase (re)locks. + size_t contention_load = 0; // # of contentious load phase locks. private: friend class context; |