Skip to content

Deadlocks possible with bad LockFor<L> impl #1

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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions