
...
If an exception occurs while a mutex is locked, deadlock may result.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
---|---|---|---|---|---|---|
CON51-CPP | Low | Probable | Yes | YesLow | P6 | L2 |
Automated Detection
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
CodeSonar |
| CONCURRENCY.LOCK.NOUNLOCK | Missing Lock Release | ||||||
Helix QAC |
| C++5018 | |||||||
Parasoft C/C++test |
| CERT_CPP-CON51-a | Do not call lock() directly on a mutex | ||||||
Polyspace Bug Finder |
| CERT C++: CON51-CPP | Checks for lock possibly not released on exception (rule fully covered) |
...