freebsd-skq/lib/libstdthreads
Ed Schouten 49891e45d2 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).
2014-09-01 18:34:30 +00:00
..
call_once.c
cnd.c
Makefile
mtx.c
Symbol.map
thrd_create.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
thrd.c
threads.h Add lock annotations to the header files of our threading libraries. 2014-09-01 18:34:30 +00:00
tss.c