| 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 #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 "platform/assert.h" |
| 9 #include "vm/globals.h" |
| 9 | 10 |
| 10 // Duplicated from dart_api.h to avoid including the whole header. | 11 // Duplicated from dart_api.h to avoid including the whole header. |
| 11 typedef int64_t Dart_Port; | 12 typedef int64_t Dart_Port; |
| 12 | 13 |
| 13 namespace dart { | 14 namespace dart { |
| 14 | 15 |
| 15 class Message { | 16 class Message { |
| 16 public: | 17 public: |
| 17 typedef enum { | 18 typedef enum { |
| 18 kNormalPriority = 0, // Deliver message when idle. | 19 kNormalPriority = 0, // Deliver message when idle. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 101 |
| 101 Message* head_; | 102 Message* head_; |
| 102 Message* tail_; | 103 Message* tail_; |
| 103 | 104 |
| 104 DISALLOW_COPY_AND_ASSIGN(MessageQueue); | 105 DISALLOW_COPY_AND_ASSIGN(MessageQueue); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace dart | 108 } // namespace dart |
| 108 | 109 |
| 109 #endif // VM_MESSAGE_H_ | 110 #endif // VM_MESSAGE_H_ |
| OLD | NEW |