MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / enableThreadHook

Method enableThreadHook

src/cpuEngine.cpp:81–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void CpuEngine::enableThreadHook() {
82 *_pthread_entry = (void*)pthread_setspecific_hook;
83 storeRelease(_current, this);
84}
85
86void CpuEngine::disableThreadHook() {
87 *_pthread_entry = (void*)pthread_setspecific;

Callers

nothing calls this directly

Calls 1

storeReleaseFunction · 0.85

Tested by

no test coverage detected