Don't use cached items in multi-threaded mode for now until we have proper immutability

This commit is contained in:
Thomas Krijnen
2024-06-11 11:20:40 +02:00
parent aa0fbd434e
commit c2efcda7bb
3 changed files with 15 additions and 4 deletions
+5
View File
@@ -28,6 +28,8 @@ namespace geometry {
class abstract_mapping {
protected:
Settings settings_;
bool use_caching_ = true;
public:
abstract_mapping(Settings& s) : settings_(s) {}
@@ -45,6 +47,9 @@ namespace geometry {
const Settings& settings() const { return settings_; }
Settings& settings() { return settings_; }
bool use_caching() const { return use_caching_; }
bool& use_caching() { return use_caching_; }
};
namespace impl {