diff options
author | jhb <jhb@FreeBSD.org> | 2001-04-09 22:34:05 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-04-09 22:34:05 +0000 |
commit | 242556cfec5c1d6e21f25d2f6d8d81f3c6a1116d (patch) | |
tree | b017e9b23dbb22d040530abe24e9c85fe29f8bea /lib/libpthread/thread/thr_mutex_prioceiling.c | |
parent | fec08fc485d6c0c3fe82475062f2e4d10192b32a (diff) | |
download | FreeBSD-src-242556cfec5c1d6e21f25d2f6d8d81f3c6a1116d.zip FreeBSD-src-242556cfec5c1d6e21f25d2f6d8d81f3c6a1116d.tar.gz |
Maintain a reference count on the witness struct. When the reference
count drops to 0 in witness_destroy, set the w_name and w_file pointers
to point to the string "(dead)" and the w_line field to 0. This way,
if a mutex of a given name is used only in a module, then as long as
all mutexes in the module are destroyed when the module is unloaded,
witness will not maintain stale references to the mutex's name in the
module's data section causing a panic later on when the w_name or w_file
field's are examined.
Diffstat (limited to 'lib/libpthread/thread/thr_mutex_prioceiling.c')
0 files changed, 0 insertions, 0 deletions