diff options
Diffstat (limited to 'base/message_loop.h')
-rw-r--r-- | base/message_loop.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/base/message_loop.h b/base/message_loop.h index 1610d07..8d5644329 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -353,7 +353,8 @@ class MessageLoop { quit_now_(loop->quit_now_), quit_received_(loop->quit_received_), run_depth_(loop->run_depth_) { - loop->quit_now_ = loop->quit_received_ = false; + loop->quit_now_ = false; + loop->quit_received_ = 0; ++loop->run_depth_; } @@ -368,7 +369,7 @@ class MessageLoop { MessageLoop* loop_; Dispatcher* dispatcher_; bool quit_now_; - bool quit_received_; + int quit_received_; int run_depth_; }; // struct ScopedStateSave @@ -586,8 +587,8 @@ class MessageLoop { bool exception_restoration_; Dispatcher* dispatcher_; - bool quit_received_; - bool quit_now_; + int quit_received_; // The number of kQuitMsg's processed during run. + bool quit_now_; // A dispatcher indicated the message pump should terminate. std::string thread_name_; // A profiling histogram showing the counts of various messages and events. |