Skip to content

Why nuttx didn't support atomic instruction? #10642

@TaiJuWu

Description

@TaiJuWu

Many architecture offer atomic instruction like compare and swap, test and set....
But I didn't find any atomic operation in nuttx kernel except atomic testing.

Is there any reason so we don't use them?
Because recently I want to optimize fair spinlock #10605 with lock-free skill.
But the basic requirements are atomic instruction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions