OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #ifndef SRC_VM_MESSAGE_MAILBOX_H_ | 5 #ifndef SRC_VM_MESSAGE_MAILBOX_H_ |
6 #define SRC_VM_MESSAGE_MAILBOX_H_ | 6 #define SRC_VM_MESSAGE_MAILBOX_H_ |
7 | 7 |
8 #include "src/shared/globals.h" | 8 #include "src/shared/globals.h" |
9 #include "src/shared/atomic.h" | 9 #include "src/shared/atomic.h" |
10 | 10 |
11 #include "src/vm/heap.h" | 11 #include "src/vm/heap.h" |
12 #include "src/vm/mailbox.h" | 12 #include "src/vm/mailbox.h" |
13 #include "src/vm/port.h" | 13 #include "src/vm/port.h" |
14 | 14 |
15 namespace fletch { | 15 namespace dartino { |
16 | 16 |
17 class Process; | 17 class Process; |
18 class Signal; | 18 class Signal; |
19 | 19 |
20 class ExitReference { | 20 class ExitReference { |
21 public: | 21 public: |
22 explicit ExitReference(Object* message); | 22 explicit ExitReference(Object* message); |
23 | 23 |
24 Object* message() const { return message_; } | 24 Object* message() const { return message_; } |
25 | 25 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void EnqueueForeign(Port* port, void* foreign, int size, bool finalized); | 99 void EnqueueForeign(Port* port, void* foreign, int size, bool finalized); |
100 void EnqueueExit(Process* sender, Port* port, Object* message); | 100 void EnqueueExit(Process* sender, Port* port, Object* message); |
101 | 101 |
102 void MergeAllChildHeaps(Process* destination_process); | 102 void MergeAllChildHeaps(Process* destination_process); |
103 | 103 |
104 private: | 104 private: |
105 void MergeAllChildHeapsFromQueue(Message* queue, | 105 void MergeAllChildHeapsFromQueue(Message* queue, |
106 Process* destination_process); | 106 Process* destination_process); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace fletch | 109 } // namespace dartino |
110 | 110 |
111 #endif // SRC_VM_MESSAGE_MAILBOX_H_ | 111 #endif // SRC_VM_MESSAGE_MAILBOX_H_ |
OLD | NEW |