summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_cond.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-04-09 22:34:05 +0000
committerjhb <jhb@FreeBSD.org>2001-04-09 22:34:05 +0000
commit242556cfec5c1d6e21f25d2f6d8d81f3c6a1116d (patch)
treeb017e9b23dbb22d040530abe24e9c85fe29f8bea /lib/libpthread/thread/thr_cond.c
parentfec08fc485d6c0c3fe82475062f2e4d10192b32a (diff)
downloadFreeBSD-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_cond.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud