From 56ac22f7371fdf45016972ce9f487cb3f02551ae Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 26 Aug 2020 01:19:01 +0000 Subject: [PATCH] cpu_interrupt_handler: Misc style changes --- src/core/arm/cpu_interrupt_handler.cpp | 6 ++---- src/core/arm/cpu_interrupt_handler.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/arm/cpu_interrupt_handler.cpp b/src/core/arm/cpu_interrupt_handler.cpp index 4c717ebe9b..9c88987003 100644 --- a/src/core/arm/cpu_interrupt_handler.cpp +++ b/src/core/arm/cpu_interrupt_handler.cpp @@ -7,9 +7,7 @@ namespace Core { -CPUInterruptHandler::CPUInterruptHandler() { - interrupt_event = std::make_unique(); -} +CPUInterruptHandler::CPUInterruptHandler() : interrupt_event{std::make_unique()} {} CPUInterruptHandler::~CPUInterruptHandler() = default; @@ -17,7 +15,7 @@ void CPUInterruptHandler::SetInterrupt(bool is_interrupted_) { if (is_interrupted_) { interrupt_event->Set(); } - this->is_interrupted = is_interrupted_; + is_interrupted = is_interrupted_; } void CPUInterruptHandler::AwaitInterrupt() { diff --git a/src/core/arm/cpu_interrupt_handler.h b/src/core/arm/cpu_interrupt_handler.h index 61c22fef95..71e582f797 100644 --- a/src/core/arm/cpu_interrupt_handler.h +++ b/src/core/arm/cpu_interrupt_handler.h @@ -33,8 +33,8 @@ public: void AwaitInterrupt(); private: - std::atomic_bool is_interrupted{false}; std::unique_ptr interrupt_event; + std::atomic_bool is_interrupted{false}; }; } // namespace Core