Skip to content

Missing memory fences in mutexes #53

Description

@socketpair

https://en.m.wikipedia.org/wiki/Memory_barrier#Multithreaded_programming_and_memory_visibility

You need mfence/lfence/sfence before mutex_lock() returns, and before unlock() returns.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions