Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

double locking should be detected #6

Open
baryluk opened this issue Sep 7, 2022 · 0 comments
Open

double locking should be detected #6

baryluk opened this issue Sep 7, 2022 · 0 comments

Comments

@baryluk
Copy link

baryluk commented Sep 7, 2022

foo.m.Lock()
defer foo.m.Lock()
foo.m.Lock()
...
foo.m.Lock()

common mistake to do when copy pasting.

Considering go default mutexes do not have deadlock detection at runtime, it is useful to have this common mistake detected for some cases statically.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant