MCPcopy Create free account
hub / github.com/catboost/catboost / MyThreadId

Function MyThreadId

util/generic/singleton.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 static inline size_t MyThreadId() noexcept {
20 const size_t ret = TThread::CurrentThreadId();
21
22 if (ret) {
23 return ret;
24 }
25
26 // clash almost impossible, ONLY if we have threads with ids 0 and 1!
27 return 1;
28 }
29} // namespace
30
31void NPrivate::FillWithTrash(void* ptr, size_t len) {

Callers 2

LockRecursiveMethod · 0.85
UnlockRecursiveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected