mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Style [#CLICKHOUSE-2]
This commit is contained in:
parent
bacda72882
commit
aaee96fc9d
@ -112,11 +112,11 @@ protected:
|
||||
class LockedObjectsMap
|
||||
{
|
||||
public:
|
||||
LockedObjectsMap(std::mutex & mutex, const ObjectsMap & objectsMap) : lock(mutex), objectsMap(objectsMap) {}
|
||||
const ObjectsMap & get() { return objectsMap; }
|
||||
LockedObjectsMap(std::mutex & mutex, const ObjectsMap & objects_map) : lock(mutex), objects_map(objects_map) {}
|
||||
const ObjectsMap & get() { return objects_map; }
|
||||
private:
|
||||
std::unique_lock<std::mutex> lock;
|
||||
const ObjectsMap & objectsMap;
|
||||
const ObjectsMap & objects_map;
|
||||
};
|
||||
|
||||
/// Direct access to objects.
|
||||
|
Loading…
Reference in New Issue
Block a user