Style [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-03-08 04:50:58 +03:00
parent bacda72882
commit aaee96fc9d

View File

@ -112,11 +112,11 @@ protected:
class LockedObjectsMap class LockedObjectsMap
{ {
public: public:
LockedObjectsMap(std::mutex & mutex, const ObjectsMap & objectsMap) : lock(mutex), objectsMap(objectsMap) {} LockedObjectsMap(std::mutex & mutex, const ObjectsMap & objects_map) : lock(mutex), objects_map(objects_map) {}
const ObjectsMap & get() { return objectsMap; } const ObjectsMap & get() { return objects_map; }
private: private:
std::unique_lock<std::mutex> lock; std::unique_lock<std::mutex> lock;
const ObjectsMap & objectsMap; const ObjectsMap & objects_map;
}; };
/// Direct access to objects. /// Direct access to objects.