Skip to content

Single CAS #6

@ghost

Description

I'm convinced that there is a way to trigger a pulse -> signal with only a single CAS.

Right now there is three opeartions

  • Atomic or to set a flag,
  • Atomic swap to read the pending waitlist
  • Atomic dec to mark the trigger as ready to free

The or and the dec cannot be merged because the waitlist needs to be read and is protected by the value of the dec.

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