Searched refs:disable_counter (Results 1 – 3 of 3) sorted by relevance
54 int disable_counter; member80 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() local98 if (*disable_counter == 0) { in EnableInThisThread()101 --*disable_counter; in EnableInThisThread()
43 THREADLOCAL int disable_counter; variable44 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()
35 __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()