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

Method destroyForThread

src/ctimer_linux.cpp:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void CTimer::destroyForThread(int tid) {
66 if (tid >= _max_timers) {
67 return;
68 }
69
70 int timer = _timers[tid];
71 if (timer != 0 && __sync_bool_compare_and_swap(&_timers[tid], timer--, 0)) {
72 syscall(__NR_timer_delete, timer);
73 }
74}
75
76Error CTimer::start(Arguments& args) {
77 if (!setupThreadHook()) {

Callers 1

onThreadEndMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected