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

Method addOnDestroyCallback

src/Common/ThreadPool.cpp:594–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592
593template <typename Thread>
594void ThreadPoolImpl<Thread>::addOnDestroyCallback(OnDestroyCallback && callback)
595{
596 std::lock_guard lock(mutex);
597 on_destroy_callbacks.push(std::move(callback));
598}
599
600template <typename Thread>
601void ThreadPoolImpl<Thread>::onDestroy()

Callers 2

mainMethod · 0.80
initializeMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected