mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Enable thread_local in Arcadia build
This commit is contained in:
parent
ed3f89a7be
commit
5a2bd0b6ba
@ -125,7 +125,7 @@ void TasksStatsCounters::incrementProfileEvents(const ::taskstats & prev, const
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) && !defined(ARCADIA_BUILD)
|
||||
#if defined(__linux__)
|
||||
|
||||
namespace DB
|
||||
{
|
||||
@ -568,7 +568,7 @@ void PerfDescriptorsHolder::releaseResources()
|
||||
namespace DB
|
||||
{
|
||||
|
||||
// Not on Linux or in Arcadia: the functionality is disabled.
|
||||
// the functionality is disabled when we are not running on Linux.
|
||||
PerfEventsCounters current_thread_counters;
|
||||
|
||||
}
|
||||
|
@ -140,9 +140,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
// thread_local is disabled in Arcadia, so we have to use a dummy implementation
|
||||
// there.
|
||||
#if defined(__linux__) && !defined(ARCADIA_BUILD)
|
||||
#if defined(__linux__)
|
||||
|
||||
struct PerfEventInfo
|
||||
{
|
||||
@ -199,7 +197,7 @@ extern thread_local PerfEventsCounters current_thread_counters;
|
||||
|
||||
#else
|
||||
|
||||
// Not on Linux, or in Arcadia: the functionality is disabled.
|
||||
// the functionality is disabled when we are not running on Linux.
|
||||
struct PerfEventsCounters
|
||||
{
|
||||
void initializeProfileEvents(const std::string & /* events_list */) {}
|
||||
@ -207,7 +205,6 @@ struct PerfEventsCounters
|
||||
void closeEventDescriptors() {}
|
||||
};
|
||||
|
||||
// thread_local is disabled in Arcadia, so we are going to use a static dummy.
|
||||
extern PerfEventsCounters current_thread_counters;
|
||||
|
||||
#endif
|
||||
|
@ -18,6 +18,7 @@ PEERDIR(
|
||||
contrib/libs/openssl
|
||||
contrib/libs/poco/NetSSL_OpenSSL
|
||||
contrib/libs/re2
|
||||
contrib/libs/cxxsupp/libcxxabi-parts
|
||||
contrib/restricted/dragonbox
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user