Searched defs:ScopedAllowIO (Results 1 - 1 of 1) sorted by relevance

/external/chromium/base/threading/
H A Dthread_restrictions.h41 // Constructing a ScopedAllowIO temporarily allows IO for the current
43 class BASE_API ScopedAllowIO { class in class:base::ThreadRestrictions
45 ScopedAllowIO() { previous_value_ = SetIOAllowed(true); } function in class:base::ThreadRestrictions::ScopedAllowIO
46 ~ScopedAllowIO() { SetIOAllowed(previous_value_); }
48 // Whether IO is allowed when the ScopedAllowIO was constructed.
51 DISALLOW_COPY_AND_ASSIGN(ScopedAllowIO);

Completed in 15 milliseconds