summaryrefslogtreecommitdiffstats
path: root/contrib/bind9/lib/isc/rwlock.c
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2011-09-03 07:13:45 +0000
committerdougb <dougb@FreeBSD.org>2011-09-03 07:13:45 +0000
commitf18a6196d77d71d90e7f726cfc30101abb2958e1 (patch)
treedf1f07c78f187c54ea276c24753c42174127668e /contrib/bind9/lib/isc/rwlock.c
parentfbc49b949e99a3bf0c24ca3f9e542ae398b89dca (diff)
parent9c893fc637e8791d7faedec39c0993533a1fbb6e (diff)
downloadFreeBSD-src-f18a6196d77d71d90e7f726cfc30101abb2958e1.zip
FreeBSD-src-f18a6196d77d71d90e7f726cfc30101abb2958e1.tar.gz
Upgrade to BIND version 9.8.1. Release notes at:
https://deepthought.isc.org/article/AA-00446/81/ or /usr/src/contrib/bind9/ Approved by: re (kib)
Diffstat (limited to 'contrib/bind9/lib/isc/rwlock.c')
-rw-r--r--contrib/bind9/lib/isc/rwlock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/bind9/lib/isc/rwlock.c b/contrib/bind9/lib/isc/rwlock.c
index fce7516..5b37f9c 100644
--- a/contrib/bind9/lib/isc/rwlock.c
+++ b/contrib/bind9/lib/isc/rwlock.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2005, 2007, 2009, 2011 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001, 2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rwlock.c,v 1.46 2009-01-18 23:48:14 tbox Exp $ */
+/* $Id: rwlock.c,v 1.46.426.2 2011-03-12 04:59:18 tbox Exp $ */
/*! \file */
@@ -261,6 +261,7 @@ isc_rwlock_lock(isc_rwlock_t *rwl, isc_rwlocktype_t type) {
}
cntflag = isc_atomic_xadd(&rwl->cnt_and_flag, READER_INCR);
+ POST(cntflag);
while (1) {
if ((rwl->cnt_and_flag & WRITER_ACTIVE) == 0)
break;
OpenPOWER on IntegriCloud