Searched refs:AutoReset (Results 1 – 9 of 9) sorted by relevance
24 class AutoReset {26 AutoReset(T* scoped_variable, T new_value) in AutoReset() function32 ~AutoReset() { *scoped_variable_ = std::move(original_value_); } in ~AutoReset()38 DISALLOW_COPY_AND_ASSIGN(AutoReset);
117 AutoReset<int> do_work_scope(&main_thread_only().do_work_depth, in DoWork()179 AutoReset<int> run_scope(&main_thread_only().run_depth, in Run()
33 TEST(EventTest, AutoReset) { in TEST() argument
198 AutoReset<bool> auto_reset_keep_running(&keep_running_, true); in Run()199 AutoReset<bool> auto_reset_in_run(&in_run_, true); in Run()
30 AutoReset<bool> auto_reset_keep_running(&keep_running_, true); in Run()
52 AutoReset(DoAutoReset), HadError(false) { in MCContext()63 if (AutoReset) in ~MCContext()
63 AutoReset(DoAutoReset) { in MCContext()72 if (AutoReset) in ~MCContext()
227 bool AutoReset; variable
259 bool AutoReset; variable