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

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

Issue 271153002: Add pause/resume for isolates in vmservice/observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/service.cc » ('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 #ifndef VM_MESSAGE_HANDLER_H_ 5 #ifndef VM_MESSAGE_HANDLER_H_
6 #define VM_MESSAGE_HANDLER_H_ 6 #define VM_MESSAGE_HANDLER_H_
7 7
8 #include "vm/message.h" 8 #include "vm/message.h"
9 #include "vm/thread.h" 9 #include "vm/thread.h"
10 #include "vm/thread_pool.h" 10 #include "vm/thread_pool.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 bool pause_on_start() const { 74 bool pause_on_start() const {
75 return pause_on_start_; 75 return pause_on_start_;
76 } 76 }
77 77
78 void set_pause_on_start(bool pause_on_start) { 78 void set_pause_on_start(bool pause_on_start) {
79 pause_on_start_ = pause_on_start; 79 pause_on_start_ = pause_on_start;
80 } 80 }
81 81
82 bool paused_on_start() const {
83 // If pause_on_start_ is still set, tell the user we are paused,
84 // even if we haven't hit the pause point yet.
85 return pause_on_start_;
86 }
87
82 bool pause_on_exit() const { 88 bool pause_on_exit() const {
83 return pause_on_exit_; 89 return pause_on_exit_;
84 } 90 }
85 91
86 void set_pause_on_exit(bool pause_on_exit) { 92 void set_pause_on_exit(bool pause_on_exit) {
87 pause_on_exit_ = pause_on_exit; 93 pause_on_exit_ = pause_on_exit;
88 } 94 }
89 95
90 bool paused_on_exit() const { 96 bool paused_on_exit() const {
91 return paused_on_exit_; 97 return paused_on_exit_;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 StartCallback start_callback_; 172 StartCallback start_callback_;
167 EndCallback end_callback_; 173 EndCallback end_callback_;
168 CallbackData callback_data_; 174 CallbackData callback_data_;
169 175
170 DISALLOW_COPY_AND_ASSIGN(MessageHandler); 176 DISALLOW_COPY_AND_ASSIGN(MessageHandler);
171 }; 177 };
172 178
173 } // namespace dart 179 } // namespace dart
174 180
175 #endif // VM_MESSAGE_HANDLER_H_ 181 #endif // VM_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698