diff options
author | ed <ed@FreeBSD.org> | 2014-09-01 18:34:30 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2014-09-01 18:34:30 +0000 |
commit | 72b4dec586dbec62ce27c16a908955fb89c58235 (patch) | |
tree | 7bacf95573a248181c5695c81c668d0753fbfe08 /lib/libc/stdlib/merge.c | |
parent | b51450dbbdf2d19842d1a554666b09373d8912c1 (diff) | |
download | FreeBSD-src-72b4dec586dbec62ce27c16a908955fb89c58235.zip FreeBSD-src-72b4dec586dbec62ce27c16a908955fb89c58235.tar.gz |
Add lock annotations to the header files of our threading libraries.
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).
Diffstat (limited to 'lib/libc/stdlib/merge.c')
0 files changed, 0 insertions, 0 deletions