Skip to content

Pm1EventRegisterBlock::set_event_enabled race condition? #327

Description

@ChocolateLoverRaj

The method takes an &self, but it reads the current register value, modifies it, and then writes the value. This can cause a race condition, right? Because the method kind of implies that it's an atomic operation when it isn't, so it could cause unexpected results if for some reason people call it from multiple threads at the same time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions