Set paused_timestamp before notifying

BUG=

Review URL: https://codereview.chromium.org//1317653003 .
This commit is contained in:
John McCutchan 2015-08-26 11:53:39 -07:00
parent 7ac684d461
commit bc988493fa

View file

@ -249,11 +249,11 @@ void MessageHandler::TaskCallback() {
// Temporarily drop the lock when calling out to NotifyPauseOnStart.
// This avoids a dead lock that can occur when this message handler
// tries to post a message while a message is being posted to it.
paused_on_start_ = true;
paused_timestamp_ = OS::GetCurrentTimeMillis();
monitor_.Exit();
NotifyPauseOnStart();
monitor_.Enter();
paused_on_start_ = true;
paused_timestamp_ = OS::GetCurrentTimeMillis();
}
HandleMessages(false, false);
if (pause_on_start()) {