Skip to content
Snippets Groups Projects
Commit 56ac22f7 authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

cpu_interrupt_handler: Misc style changes

parent ea7bda25
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment