Home
last modified time | relevance | path

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

/aosp_15_r20/external/cronet/base/threading/
H A Dthread_restrictions.cc27 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()
[all …]
H A Dthread_restrictions.h501 class BooleanWithStack {
504 BooleanWithStack() = default;
507 explicit BooleanWithStack(bool value);
512 const BooleanWithStack& bws);
558 const AutoReset<BooleanWithStack> resetter_;
688 const AutoReset<BooleanWithStack> resetter_;
725 const AutoReset<BooleanWithStack> resetter_;
802 const AutoReset<BooleanWithStack> resetter_;
911 const AutoReset<BooleanWithStack> resetter_;
934 const AutoReset<BooleanWithStack> resetter_;
[all …]
H A Dthread_unittest.cc171 additional_space += sizeof(BooleanWithStack) * 4; in TEST_F()