ClickHouse/libs/libcommon/include/common/getThreadId.h

6 lines
133 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();