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

Unified Diff: runtime/vm/message_queue_test.cc

Issue 9141005: Change the thread interface in runtime/platform and use it starting all threads (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from ager@ Created 8 years, 11 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
Index: runtime/vm/message_queue_test.cc
diff --git a/runtime/vm/message_queue_test.cc b/runtime/vm/message_queue_test.cc
index e807b32d38ee70c48ce079d52326e2f2c5b17c07..8d6fba181a95b8cd001c9165a6626e39b1dc0da9 100644
--- a/runtime/vm/message_queue_test.cc
+++ b/runtime/vm/message_queue_test.cc
@@ -109,8 +109,8 @@ void MessageReceiver_start(uword unused) {
TEST_CASE(MessageQueue_WaitNotify) {
sync = new Monitor();
- Thread* thread = new Thread(MessageReceiver_start, 0);
- EXPECT(thread != NULL);
+ ThreadHandle thread = Thread::Start(MessageReceiver_start, 0);
+ EXPECT(thread != Thread::kInvalidThreadHandle);
// Wait for the shared queue to be created.
while (shared_queue == NULL) {

Powered by Google App Engine
This is Rietveld 408576698