MCPcopy Create free account
hub / github.com/apache/brpc / IsThreadNowSupported

Function IsThreadNowSupported

src/butil/time/time.h:636–638  ·  view source on GitHub ↗

FIXME(gejun): CLOCK_THREAD_CPUTIME_ID behaves differently in different glibc. To avoid potential bug, disable ThreadNow() always. Returns true if ThreadNow() is supported on this system.

Source from the content-addressed store, hash-verified

634 // glibc. To avoid potential bug, disable ThreadNow() always.
635 // Returns true if ThreadNow() is supported on this system.
636 static bool IsThreadNowSupported() {
637 return false;
638 }
639
640 // Returns thread-specific CPU-time on systems that support this feature.
641 // Needs to be guarded with a call to IsThreadNowSupported(). Use this timer

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68