cpu_interrupt_handler: Misc style changes

This commit is contained in:
ReinUsesLisp 2020-08-26 01:19:01 +00:00
parent ea7bda25ba
commit 56ac22f737
2 changed files with 3 additions and 5 deletions

View file

@ -7,9 +7,7 @@
namespace Core {
CPUInterruptHandler::CPUInterruptHandler() {
interrupt_event = std::make_unique<Common::Event>();
}
CPUInterruptHandler::CPUInterruptHandler() : interrupt_event{std::make_unique<Common::Event>()} {}
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() {

View file

@ -33,8 +33,8 @@ public:
void AwaitInterrupt();
private:
std::atomic_bool is_interrupted{false};
std::unique_ptr<Common::Event> interrupt_event;
std::atomic_bool is_interrupted{false};
};
} // namespace Core