Skip to content

Atomic locking of multiple sync::mutex::Mutex  #16405

Closed
@toroidal-code

Description

@toroidal-code

There's currently no way of locking on two or more sync::mutex::Mutex at once.

C++11 provides a std::lock vs std::mutex::lock, where the first is a variadic template that can lock multiple mutexes, and the second is a member method to lock a single mutex.

Maybe a sync::mutex::lock would work?

This might apply to the std wrapper Mutex types too.

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