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

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

Issue 25646004: Add Dart_PostPriority function to dart_api, and use it in runAsync to schedule immediate events in … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More cleanup Created 7 years, 2 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/dart_api_impl.cc ('k') | runtime/vm/message.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_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.
11 typedef int64_t Dart_Port; 11 typedef int64_t Dart_Port;
12 12
13 namespace dart { 13 namespace dart {
14 14
15 class Message { 15 class Message {
16 public: 16 public:
17 typedef enum { 17 typedef enum {
18 kNormalPriority = 0, // Deliver message when idle. 18 kNormalPriority = 0, // Deliver message when idle.
19 kOOBPriority = 1, // Deliver message asap. 19 kFirstPriority = 1, // Deliver message asap.
Lasse Reichstein Nielsen 2013/10/03 08:53:41 asap->ASAP.
floitsch 2013/10/03 09:04:26 Maybe just: Deliver message when idle before norma
20 20 kOOBPriority = 2, // Deliver message OOB.
Lasse Reichstein Nielsen 2013/10/03 08:53:41 Spell out "Out-of-band", and say what it means. Ho
21 // Iteration.
22 kFirstPriority = 0,
23 kNumPriorities = 2,
24 } Priority; 21 } Priority;
25 22
26 // A port number which is never used. 23 // A port number which is never used.
27 static const Dart_Port kIllegalPort = 0; 24 static const Dart_Port kIllegalPort = 0;
28 25
29 // A new message to be sent between two isolates. The data handed to this 26 // 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 27 // message will be disposed by calling free() once the message object is
31 // being destructed (after delivery or when the receiving port is closed). 28 // being destructed (after delivery or when the receiving port is closed).
32 // 29 //
33 // If reply_port is kIllegalPort, then there is no reply port. 30 // If reply_port is kIllegalPort, then there is no reply port.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 81
85 Message* head_; 82 Message* head_;
86 Message* tail_; 83 Message* tail_;
87 84
88 DISALLOW_COPY_AND_ASSIGN(MessageQueue); 85 DISALLOW_COPY_AND_ASSIGN(MessageQueue);
89 }; 86 };
90 87
91 } // namespace dart 88 } // namespace dart
92 89
93 #endif // VM_MESSAGE_H_ 90 #endif // VM_MESSAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698