diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-10-07 21:03:58 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-10-07 21:03:58 +0000 |
commit | b0fa07975af2ed8812544950f5785a48f0b41dfd (patch) | |
tree | 948ffbf4eac5cdb9692bc4b33105bec37a3a9a7e /staging_vespalib/src | |
parent | 356172042cbc96375be8d663a945879b9f10dd41 (diff) |
mutex must be mutable to be used in const method.
Diffstat (limited to 'staging_vespalib/src')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/util/varholder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/varholder.h b/staging_vespalib/src/vespa/vespalib/util/varholder.h index 980d773adc4..5b68ffa5582 100644 --- a/staging_vespalib/src/vespa/vespalib/util/varholder.h +++ b/staging_vespalib/src/vespa/vespalib/util/varholder.h @@ -9,8 +9,8 @@ namespace vespalib { template <typename T> class VarHolder { - T _v; - std::mutex _lock; + T _v; + mutable std::mutex _lock; public: VarHolder() : _v(), _lock() {} explicit VarHolder(const T &v) : _v(v), _lock() {} |