Skip to content

Missing memory fences in mutexes #53

@socketpair

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.

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