mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Set paused_timestamp before notifying
BUG= Review URL: https://codereview.chromium.org//1317653003 .
This commit is contained in:
parent
7ac684d461
commit
bc988493fa
1 changed files with 2 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue