mirror of
https://github.com/opnsense/src.git
synced 2026-02-12 23:36:07 -05:00
This change extends all of the functions present in the <pthread.h> and <threads.h> headers to have lock annotations. This will allow Clang to warn about the following: - Locking a function twice, - Unlocking a function without a mutex being locked, - Forgetting to unlock a mutex before returning, - Destroying or reinitializing a mutex that is currenty locked, - Using an unlocked mutex in combination with a condition variable. Enabling these annotations already allowed me to catch a bug in one of our userspace tools (r270749). |
||
|---|---|---|
| .. | ||
| call_once.c | ||
| cnd.c | ||
| Makefile | ||
| mtx.c | ||
| Symbol.map | ||
| thrd.c | ||
| thrd_create.3 | ||
| threads.h | ||
| tss.c | ||