Home | History | Annotate | Download | only in threading

Lines Matching full:allowed

21 // 1) If a thread should not be allowed to make IO calls, mark it:
23 // By default, threads *are* allowed to make IO calls.
27 // current thread is allowed:
48 // Whether IO is allowed when the ScopedAllowIO was constructed.
61 // Whether singleton use is allowed when the ScopedAllowSingleton was
70 // Threads start out in the *allowed* state.
72 static bool SetIOAllowed(bool allowed);
74 // Check whether the current thread is allowed to make IO calls,
81 static bool SetSingletonAllowed(bool allowed);
83 // Check whether the current thread is allowed to use singletons (Singleton /
89 static bool SetIOAllowed(bool allowed) { return true; }
91 static bool SetSingletonAllowed(bool allowed) { return true; }