C or C++ : Block critical section

Classification

CWE CWE-667

Overview

Calls to blocking functions (for example: sleep, getc, fgets, read, recv etc.) inside a critical section can lead to bad perfomance or even deadlock.

References

  1. CWE-667: Improper Locking