MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / GetThreadId

Function GetThreadId

Bcore/src/main/cpp/android-base/logging.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77#endif
78
79static thread_id GetThreadId() {
80#if defined(__BIONIC__)
81 return gettid();
82#elif defined(__APPLE__)
83 uint64_t tid;
84 pthread_threadid_np(NULL, &tid);
85 return tid;
86#elif defined(__linux__)
87 return syscall(__NR_gettid);
88#elif defined(_WIN32)
89 return GetCurrentThreadId();
90#endif
91}
92
93namespace {
94#if defined(__GLIBC__)

Callers 1

StderrLoggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected