Home
last modified time | relevance | path

Searched refs:disable_counter (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_common_mac.cpp54 int disable_counter; member
80 ptr->disable_counter = 0; in get_tls_val()
91 return data ? data->disable_counter > 0 : false; in DisabledInThisThread()
94 void DisableInThisThread() { ++get_tls_val(true)->disable_counter; } in DisableInThisThread()
97 int *disable_counter = &get_tls_val(true)->disable_counter; in EnableInThisThread() local
98 if (*disable_counter == 0) { in EnableInThisThread()
101 --*disable_counter; in EnableInThisThread()
H A Dlsan_common_linux.cpp43 THREADLOCAL int disable_counter; variable
44 bool DisabledInThisThread() { return disable_counter > 0; } in DisabledInThisThread()
45 void DisableInThisThread() { disable_counter++; } in DisableInThisThread()
47 if (disable_counter == 0) { in EnableInThisThread()
50 disable_counter--; in EnableInThisThread()
H A Dlsan_common_fuchsia.cpp35 __attribute__((tls_model("initial-exec"))) THREADLOCAL int disable_counter; variable
36 bool DisabledInThisThread() { return disable_counter > 0; } in DisabledInThisThread()
37 void DisableInThisThread() { disable_counter++; } in DisableInThisThread()
39 if (disable_counter == 0) { in EnableInThisThread()
42 disable_counter--; in EnableInThisThread()