diff options
Diffstat (limited to 'src/core/core_cpu.h')
| -rw-r--r-- | src/core/core_cpu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/core_cpu.h b/src/core/core_cpu.h index 40ed34b47..1d229b42f 100644 --- a/src/core/core_cpu.h +++ b/src/core/core_cpu.h | |||
| @@ -42,7 +42,7 @@ private: | |||
| 42 | class Cpu { | 42 | class Cpu { |
| 43 | public: | 43 | public: |
| 44 | Cpu(std::shared_ptr<ExclusiveMonitor> exclusive_monitor, | 44 | Cpu(std::shared_ptr<ExclusiveMonitor> exclusive_monitor, |
| 45 | std::shared_ptr<CpuBarrier> cpu_barrier, size_t core_index); | 45 | std::shared_ptr<CpuBarrier> cpu_barrier, std::size_t core_index); |
| 46 | 46 | ||
| 47 | void RunLoop(bool tight_loop = true); | 47 | void RunLoop(bool tight_loop = true); |
| 48 | 48 | ||
| @@ -66,11 +66,11 @@ public: | |||
| 66 | return core_index == 0; | 66 | return core_index == 0; |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | size_t CoreIndex() const { | 69 | std::size_t CoreIndex() const { |
| 70 | return core_index; | 70 | return core_index; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | static std::shared_ptr<ExclusiveMonitor> MakeExclusiveMonitor(size_t num_cores); | 73 | static std::shared_ptr<ExclusiveMonitor> MakeExclusiveMonitor(std::size_t num_cores); |
| 74 | 74 | ||
| 75 | private: | 75 | private: |
| 76 | void Reschedule(); | 76 | void Reschedule(); |
| @@ -80,7 +80,7 @@ private: | |||
| 80 | std::shared_ptr<Kernel::Scheduler> scheduler; | 80 | std::shared_ptr<Kernel::Scheduler> scheduler; |
| 81 | 81 | ||
| 82 | std::atomic<bool> reschedule_pending = false; | 82 | std::atomic<bool> reschedule_pending = false; |
| 83 | size_t core_index; | 83 | std::size_t core_index; |
| 84 | }; | 84 | }; |
| 85 | 85 | ||
| 86 | } // namespace Core | 86 | } // namespace Core |