Skip to content

Add a statically-initializable mutex type to libstd #9714

Closed
@sfackler

Description

@sfackler

There are certain cases where you need a global mutex (see #9713 for one example) and the only reasonable way to do that without something like Go's init functions is a mutex type with a static initializer similar to PTHREAD_MUTEX_INITIALIZER from libpthread.

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