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

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

Issue 19622003: VM Service isolate listing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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/isolate.cc ('k') | runtime/vm/service.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 #ifndef VM_MESSAGE_H_ 5 #ifndef VM_MESSAGE_H_
6 #define VM_MESSAGE_H_ 6 #define VM_MESSAGE_H_
7 7
8 #include "vm/thread.h" 8 #include "vm/thread.h"
9 9
10 // Duplicated from dart_api.h to avoid including the whole header. 10 // Duplicated from dart_api.h to avoid including the whole header.
(...skipping 13 matching lines...) Expand all
24 } Priority; 24 } Priority;
25 25
26 // A port number which is never used. 26 // A port number which is never used.
27 static const Dart_Port kIllegalPort = 0; 27 static const Dart_Port kIllegalPort = 0;
28 28
29 // A new message to be sent between two isolates. The data handed to this 29 // A new message to be sent between two isolates. The data handed to this
30 // message will be disposed by calling free() once the message object is 30 // message will be disposed by calling free() once the message object is
31 // being destructed (after delivery or when the receiving port is closed). 31 // being destructed (after delivery or when the receiving port is closed).
32 // 32 //
33 // If reply_port is kIllegalPort, then there is no reply port. 33 // If reply_port is kIllegalPort, then there is no reply port.
34 Message(Dart_Port dest_port, Dart_Port reply_port, 34 Message(Dart_Port dest_port, Dart_Port reply_port, uint8_t* data,
35 uint8_t* data, intptr_t len, Priority priority) 35 intptr_t len, Priority priority)
36 : next_(NULL), 36 : next_(NULL),
37 dest_port_(dest_port), 37 dest_port_(dest_port),
38 reply_port_(reply_port), 38 reply_port_(reply_port),
39 data_(data), 39 data_(data),
40 len_(len), 40 len_(len),
41 priority_(priority) {} 41 priority_(priority) {}
42 ~Message() { 42 ~Message() {
43 free(data_); 43 free(data_);
44 } 44 }
45 45
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 Message* head_; 85 Message* head_;
86 Message* tail_; 86 Message* tail_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(MessageQueue); 88 DISALLOW_COPY_AND_ASSIGN(MessageQueue);
89 }; 89 };
90 90
91 } // namespace dart 91 } // namespace dart
92 92
93 #endif // VM_MESSAGE_H_ 93 #endif // VM_MESSAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698