MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / unlock

Method unlock

src/IO/SilkSecureFiberStreamSocketImpl.cpp:184–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 void unlock() override
185 {
186 chassert(owner.load(std::memory_order_relaxed) == silk::FiberScheduler::getCurrentFiber());
187 if (--count == 0)
188 {
189 owner.store(nullptr, std::memory_order_relaxed);
190 mutex.unlock();
191 }
192 }
193
194private:
195 silk::FiberMutex mutex;

Callers 15

nextImplMethod · 0.45
cleanThreadMethod · 0.45
joinLoadingThreadsMethod · 0.45
enableMethod · 0.45
doPeriodicUpdatesMethod · 0.45
workerFunctionMethod · 0.45
collectMetricMethod · 0.45
finishQueryMethod · 0.45
dispatchHandlerImplMethod · 0.45
DDLGuardMethod · 0.45
releaseTableLockMethod · 0.45
nextImplMethod · 0.45

Calls 2

loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected