diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-25 15:41:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:39:24 +0200 |
commit | 88f0780e34116c0441a8d8c58b8a8fd9fde4b1f5 (patch) | |
tree | 1240b36211772479dc1220712e0daed4e35ecd85 /build2/rule | |
parent | 61aa8e2b4bd7849838c04dc1f421c4760d88319f (diff) |
Add model mutex, make var_pool const by default
Diffstat (limited to 'build2/rule')
-rw-r--r-- | build2/rule | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/build2/rule b/build2/rule index d01df6b..cc98bfa 100644 --- a/build2/rule +++ b/build2/rule @@ -37,10 +37,10 @@ namespace build2 { public: virtual match_result - match (action, target&, const string& hint) const = 0; + match (slock&, action, target&, const string& hint) const = 0; virtual recipe - apply (action, target&) const = 0; + apply (slock&, action, target&) const = 0; }; // Fallback rule that only matches if the file exists. @@ -51,10 +51,10 @@ namespace build2 file_rule () {} virtual match_result - match (action, target&, const string& hint) const override; + match (slock&, action, target&, const string&) const override; virtual recipe - apply (action, target&) const override; + apply (slock&, action, target&) const override; static const file_rule instance; }; @@ -65,10 +65,10 @@ namespace build2 alias_rule () {} virtual match_result - match (action, target&, const string& hint) const override; + match (slock&, action, target&, const string&) const override; virtual recipe - apply (action, target&) const override; + apply (slock&, action, target&) const override; static const alias_rule instance; }; @@ -79,10 +79,10 @@ namespace build2 fsdir_rule () {} virtual match_result - match (action, target&, const string& hint) const override; + match (slock&, action, target&, const string&) const override; virtual recipe - apply (action, target&) const override; + apply (slock&, action, target&) const override; static target_state perform_update (action, target&); @@ -101,10 +101,13 @@ namespace build2 fallback_rule () {} virtual match_result - match (action, target&, const string&) const override {return true;} + match (slock&, action, target&, const string&) const override + { + return true; + } virtual recipe - apply (action, target&) const override {return noop_recipe;} + apply (slock&, action, target&) const override {return noop_recipe;} static const fallback_rule instance; }; |