Skip to content

Deadlocks possible with bad LockFor<L> impl #1

@jasper310899

Description

@jasper310899

If you lock the same mutex twice from two different LockFor impls you can create a deadlock: Image

Therefore I propose that a derive macro replaces manual LockFor implementations making the abstraction perfect. LockFor should then become a unsafe trait.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions