diff --git a/threading/sync/lockable.hpp b/threading/sync/lockable.hpp index 01f627d94..2ed9ec605 100644 --- a/threading/sync/lockable.hpp +++ b/threading/sync/lockable.hpp @@ -10,17 +10,17 @@ class Lockable public: using lock_type = lock_t; - std::lock_guard acquire_guard() + std::lock_guard acquire_guard() const { return std::lock_guard(lock); } - std::unique_lock acquire_unique() + std::unique_lock acquire_unique() const { return std::unique_lock(lock); } - - lock_t lock; + + mutable lock_t lock; }; #endif