ClickHouse/base/base/getThreadId.h

8 lines
173 B
C++
Raw Normal View History

2020-02-02 02:35:47 +00:00
#pragma once
#include <cstdint>
2020-02-02 02:35:47 +00:00
/// Obtain thread id from OS. The value is cached in thread local variable.
uint64_t getThreadId();
2023-07-07 14:40:47 +00:00
void updateCurrentThreadIdAfterFork();