diff options
| author | bunnei <bunneidev@gmail.com> | 2020-08-28 09:21:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-28 09:21:47 -0400 |
| commit | 40320a1d8428f9079d43a363421083678c4a9042 (patch) | |
| tree | c2ba44c006d34873b288b0bf8624be19a55d025a /src/core/arm/cpu_interrupt_handler.cpp | |
| parent | 3db9a259771a44278ff34168ba140c2c7815a1cf (diff) | |
| parent | 56ac22f7371fdf45016972ce9f487cb3f02551ae (diff) | |
Merge pull request #4586 from yuzu-emu/tsan-cpu-interrupt
cpu_interrupt_handler: Make is_interrupted an atomic
Diffstat (limited to 'src/core/arm/cpu_interrupt_handler.cpp')
| -rw-r--r-- | src/core/arm/cpu_interrupt_handler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/arm/cpu_interrupt_handler.cpp b/src/core/arm/cpu_interrupt_handler.cpp index df0350881..9c8898700 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() : is_interrupted{} { - 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() { |
