Lines Matching refs:BooleanWithStack
27 BooleanWithStack::BooleanWithStack(bool value) : value_(value) { in BooleanWithStack() function in base::BooleanWithStack
33 std::ostream& operator<<(std::ostream& out, const BooleanWithStack& bws) { in operator <<()
47 ABSL_CONST_INIT thread_local BooleanWithStack tls_blocking_disallowed;
48 ABSL_CONST_INIT thread_local BooleanWithStack tls_singleton_disallowed;
49 ABSL_CONST_INIT thread_local BooleanWithStack
51 ABSL_CONST_INIT thread_local BooleanWithStack tls_cpu_intensive_work_disallowed;
75 tls_blocking_disallowed = BooleanWithStack(true); in DisallowBlocking()
79 : resetter_(&tls_blocking_disallowed, BooleanWithStack(true)) {} in ScopedDisallowBlocking()
89 tls_base_sync_primitives_disallowed = BooleanWithStack(true); in DisallowBaseSyncPrimitives()
93 : resetter_(&tls_base_sync_primitives_disallowed, BooleanWithStack(true)) {} in ScopedDisallowBaseSyncPrimitives()
104 : resetter_(&tls_base_sync_primitives_disallowed, BooleanWithStack(false)) { in ScopedAllowBaseSyncPrimitives()
121 : resetter_(&tls_base_sync_primitives_disallowed, BooleanWithStack(false)) { in ScopedAllowBaseSyncPrimitivesForTesting()
135 BooleanWithStack(false)), in ScopedAllowUnresponsiveTasksForTesting()
136 blocking_resetter_(&tls_blocking_disallowed, BooleanWithStack(false)), in ScopedAllowUnresponsiveTasksForTesting()
138 BooleanWithStack(false)) {} in ScopedAllowUnresponsiveTasksForTesting()
174 tls_blocking_disallowed = BooleanWithStack(false); in ResetThreadRestrictionsForTesting()
175 tls_singleton_disallowed = BooleanWithStack(false); in ResetThreadRestrictionsForTesting()
176 tls_base_sync_primitives_disallowed = BooleanWithStack(false); in ResetThreadRestrictionsForTesting()
177 tls_cpu_intensive_work_disallowed = BooleanWithStack(false); in ResetThreadRestrictionsForTesting()
195 tls_singleton_disallowed = BooleanWithStack(true); in DisallowSingleton()
199 : resetter_(&tls_singleton_disallowed, BooleanWithStack(true)) {} in ScopedDisallowSingleton()
220 tls_cpu_intensive_work_disallowed = BooleanWithStack(true); in DisallowUnresponsiveTasks()
225 tls_blocking_disallowed = BooleanWithStack(false); in AllowBlocking()
230 tls_base_sync_primitives_disallowed = BooleanWithStack(false); in AllowBaseSyncPrimitives()
241 : resetter_(&tls_blocking_disallowed, BooleanWithStack(false)) in ScopedAllowBlocking()
265 : resetter_(&tls_base_sync_primitives_disallowed, BooleanWithStack(false)) in ScopedAllowBaseSyncPrimitivesOutsideBlockingScope()