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 | 6 |
7 #include "vm/dart.h" | 7 #include "vm/dart.h" |
8 #include "vm/lockers.h" | 8 #include "vm/lockers.h" |
9 #include "vm/object.h" | 9 #include "vm/object.h" |
10 #include "vm/object_store.h" | 10 #include "vm/object_store.h" |
11 #include "vm/os.h" | 11 #include "vm/os.h" |
12 #include "vm/port.h" | 12 #include "vm/port.h" |
13 #include "vm/thread_interrupter.h" | 13 #include "vm/thread_interrupter.h" |
14 | 14 |
15 | 15 |
16 namespace dart { | 16 namespace dart { |
17 | 17 |
18 DECLARE_FLAG(bool, trace_isolates); | |
19 DECLARE_FLAG(bool, trace_service_pause_events); | 18 DECLARE_FLAG(bool, trace_service_pause_events); |
20 | 19 |
21 class MessageHandlerTask : public ThreadPool::Task { | 20 class MessageHandlerTask : public ThreadPool::Task { |
22 public: | 21 public: |
23 explicit MessageHandlerTask(MessageHandler* handler) | 22 explicit MessageHandlerTask(MessageHandler* handler) |
24 : handler_(handler) { | 23 : handler_(handler) { |
25 ASSERT(handler != NULL); | 24 ASSERT(handler != NULL); |
26 } | 25 } |
27 | 26 |
28 virtual void Run() { | 27 virtual void Run() { |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 handler_->oob_message_handling_allowed_ = false; | 525 handler_->oob_message_handling_allowed_ = false; |
527 } | 526 } |
528 | 527 |
529 | 528 |
530 MessageHandler::AcquiredQueues::~AcquiredQueues() { | 529 MessageHandler::AcquiredQueues::~AcquiredQueues() { |
531 ASSERT(handler_ != NULL); | 530 ASSERT(handler_ != NULL); |
532 handler_->oob_message_handling_allowed_ = true; | 531 handler_->oob_message_handling_allowed_ = true; |
533 } | 532 } |
534 | 533 |
535 } // namespace dart | 534 } // namespace dart |
OLD | NEW |