Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Unified Diff: runtime/vm/message_queue_test.cc

Issue 8344017: Fix race. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/message_queue_test.cc
===================================================================
--- runtime/vm/message_queue_test.cc (revision 526)
+++ runtime/vm/message_queue_test.cc (working copy)
@@ -100,11 +100,12 @@
TEST_CASE(MessageQueue_WaitNotify) {
+ sync = new Monitor();
+
Thread* thread = new Thread(MessageReceiver_start, 0);
EXPECT(thread != NULL);
// Wait for the shared queue to be created.
- sync = new Monitor();
{
MonitorLocker ml(sync);
ml.Wait(0);
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698