Skip to content

Use barrier-less and lock-less locks where possible #3

Description

@Tamschi

Is your feature request related to a problem? Please describe.
The value storage in signals themselves generally doesn't need memory barriers (and in the case of ZSTs, the lock/atomic could be a ZST itself).

Describe the solution you'd like
Rather than using RwLocks, a slimmer atomic container with (largely?) Relaxed ordering could be used.

Describe alternatives you've considered
This may be partially covered by #2.

Additional context
I had implemented lock/barrier-skips manually on access before, but that was too error-prone.
Signal propagation does have to introduce some memory barriers for correctness, so that read values are always fresh.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain: RustInvolves Rust code.priority: somedayIf you need this, please let me know!state: approvedApproved to proceed.type: fixIterations on existing features or infrastructurework: emergentThe goal isn't known, but a plan exists.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions