| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |