| OLD | NEW |
| 1 // Copyright (c) 2016, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_PREEMPTER_H_ | 5 #ifndef SRC_VM_PREEMPTER_H_ |
| 6 #define SRC_VM_PREEMPTER_H_ | 6 #define SRC_VM_PREEMPTER_H_ |
| 7 | 7 |
| 8 #include "src/shared/atomic.h" | 8 #include "src/shared/atomic.h" |
| 9 | 9 |
| 10 #include "src/vm/thread.h" | 10 #include "src/vm/thread.h" |
| 11 #include "src/vm/scheduler.h" | 11 #include "src/vm/scheduler.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 41 Atomic<State> state_; | 41 Atomic<State> state_; |
| 42 Scheduler* scheduler_; | 42 Scheduler* scheduler_; |
| 43 | 43 |
| 44 uint64 GetNextPreemptTime(); | 44 uint64 GetNextPreemptTime(); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 | 47 |
| 48 } // namespace fletch | 48 } // namespace fletch |
| 49 | 49 |
| 50 #endif // SRC_VM_PREEMPTER_H_ | 50 #endif // SRC_VM_PREEMPTER_H_ |
| OLD | NEW |