Lines Matching refs:g_blocking_disallowed
17 LazyInstance<ThreadLocalBoolean>::Leaky g_blocking_disallowed = variable
29 DCHECK(!g_blocking_disallowed.Get().Get()) in AssertBlockingAllowed()
38 g_blocking_disallowed.Get().Set(true); in DisallowBlocking()
42 : was_disallowed_(g_blocking_disallowed.Get().Get()) { in ScopedDisallowBlocking()
43 g_blocking_disallowed.Get().Set(true); in ScopedDisallowBlocking()
47 DCHECK(g_blocking_disallowed.Get().Get()); in ~ScopedDisallowBlocking()
48 g_blocking_disallowed.Get().Set(was_disallowed_); in ~ScopedDisallowBlocking()
52 : was_disallowed_(g_blocking_disallowed.Get().Get()) { in ScopedAllowBlocking()
53 g_blocking_disallowed.Get().Set(false); in ScopedAllowBlocking()
57 DCHECK(!g_blocking_disallowed.Get().Get()); in ~ScopedAllowBlocking()
58 g_blocking_disallowed.Get().Set(was_disallowed_); in ~ScopedAllowBlocking()
67 DCHECK(!g_blocking_disallowed.Get().Get()) in ScopedAllowBaseSyncPrimitives()
114 g_blocking_disallowed.Get().Set(false); in ResetThreadRestrictionsForTesting()
130 bool previous_disallowed = g_blocking_disallowed.Get().Get(); in SetIOAllowed()
131 g_blocking_disallowed.Get().Set(!allowed); in SetIOAllowed()