MCPcopy Create free account
hub / github.com/apache/cloudberry / InitProcessId

Function InitProcessId

contrib/udp2/ic_common/ic_utility.cpp:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 };
101
102static void InitProcessId() {
103 std::stringstream ss;
104 ss.imbue(std::locale::classic());
105 ss << "p" << getpid() << ", th" << pthread_self();
106 snprintf(ProcessId, sizeof(ProcessId), "%s", ss.str().c_str());
107}
108
109Logger::Logger() :
110 fd(STDERR_FILENO), severity(DEFAULT_LOG_LEVEL) {

Callers

nothing calls this directly

Calls 2

pthread_selfFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected