rspec/rules/S3046/description.adoc
2021-01-27 13:42:22 +01:00

2 lines
292 B
Plaintext

When two locks are held simultaneously, a ``++wait++`` call only releases one of them. The other will be held until some other thread requests a lock on the awaited object. If no unrelated code tries to lock on that object, then all other threads will be locked out, resulting in a deadlock.