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

Side by Side Diff: runtime/vm/message_handler.cc

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/message_handler.h" 5 #include "vm/message_handler.h"
6 #include "vm/dart.h" 6 #include "vm/dart.h"
7 7
8 namespace dart { 8 namespace dart {
9 9
10 DECLARE_FLAG(bool, trace_isolates); 10 DECLARE_FLAG(bool, trace_isolates);
(...skipping 18 matching lines...) Expand all
29 29
30 30
31 MessageHandler::MessageHandler() 31 MessageHandler::MessageHandler()
32 : queue_(new MessageQueue()), 32 : queue_(new MessageQueue()),
33 oob_queue_(new MessageQueue()), 33 oob_queue_(new MessageQueue()),
34 live_ports_(0), 34 live_ports_(0),
35 pool_(NULL), 35 pool_(NULL),
36 task_(NULL), 36 task_(NULL),
37 start_callback_(NULL), 37 start_callback_(NULL),
38 end_callback_(NULL), 38 end_callback_(NULL),
39 callback_data_(NULL) { 39 callback_data_(0) {
40 ASSERT(queue_ != NULL); 40 ASSERT(queue_ != NULL);
41 ASSERT(oob_queue_ != NULL); 41 ASSERT(oob_queue_ != NULL);
42 } 42 }
43 43
44 44
45 MessageHandler::~MessageHandler() { 45 MessageHandler::~MessageHandler() {
46 delete queue_; 46 delete queue_;
47 delete oob_queue_; 47 delete oob_queue_;
48 } 48 }
49 49
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 void MessageHandler::decrement_live_ports() { 267 void MessageHandler::decrement_live_ports() {
268 MonitorLocker ml(&monitor_); 268 MonitorLocker ml(&monitor_);
269 #if defined(DEBUG) 269 #if defined(DEBUG)
270 CheckAccess(); 270 CheckAccess();
271 #endif 271 #endif
272 live_ports_--; 272 live_ports_--;
273 } 273 }
274 274
275 } // namespace dart 275 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698