cpu_interrupt_handler: Make is_interrupted an atomic

Fixes a race condition detected from tsan
This commit is contained in:
ReinUsesLisp
2020-08-26 01:16:40 +00:00
parent 4efaecf125
commit ea7bda25ba
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@
namespace Core {
CPUInterruptHandler::CPUInterruptHandler() : is_interrupted{} {
CPUInterruptHandler::CPUInterruptHandler() {
interrupt_event = std::make_unique<Common::Event>();
}