Ondřej Surý
22e5231f99
Remove ISC_PLATFORM_BUSYWAITNOP in favour of direct isc_rwlock_pause() define
2018-09-07 12:17:29 +02:00
Ondřej Surý
9d5df99a9d
Directly use return value of atomic_compare_exchange_strong_explicit insteaf of comparing expected value
2018-08-28 12:15:39 +02:00
Ondřej Surý
b5709e5531
Explicitly load atomic values in lib/isc/rwlock.c
2018-08-28 12:15:39 +02:00
Ondřej Surý
e9e55cbd03
Remove isc_atomic usage from rwlock.c and stats.c
2018-08-28 12:15:39 +02:00
Witold Kręcicki
5cdb38c2c7
Remove unthreaded support
2018-08-16 17:18:52 +02:00
Ondřej Surý
994e656977
Replace custom isc_boolean_t with C standard bool type
2018-08-08 09:37:30 +02:00
Ondřej Surý
cb6a185c69
Replace custom isc_u?intNN_t types with C99 u?intNN_t types
2018-08-08 09:37:28 +02:00
Ondřej Surý
55a10b7acd
Remove $Id markers, Principal Author and Reviewed tags from the full source tree
2018-05-11 13:17:46 +02:00
Ondřej Surý
843d389661
Update license headers to not include years in copyright in all applicable files
2018-02-23 10:12:02 +01:00
Mukund Sivaraman
fb9712f639
Use stdint.h only when stdatomic.h is in use (stdint.h isn't available everywhere)
2017-09-22 15:14:04 +05:30
Mark Andrews
f8c82bbf39
#include <stdint.h>
2017-09-21 14:18:59 +10:00
Mark Andrews
e8703033c5
atomic_compare_exchange_strong_explicit's second argument should not be atomic_*
2017-09-21 13:41:22 +10:00
Mukund Sivaraman
404c9b1c53
Use C11's stdatomic.h instead of isc_atomic where available
2017-09-19 15:43:45 +05:30
Tinderbox User
1f6505a424
update copyright notice / whitespace
2017-04-22 23:45:41 +00:00
Mukund Sivaraman
03be5a6b4e
Improve performance for delegation heavy answers and also general query performance ( #44029 )
2017-04-22 09:22:44 +05:30
Mark Andrews
0c27b3fe77
4401. [misc] Change LICENSE to MPL 2.0.
2016-06-27 14:56:38 +10:00
Tinderbox User
a63461cc4b
update copyright notice / whitespace
2016-03-23 23:45:22 +00:00
Evan Hunt
bca79675ee
[master] fix x64 NOP, silence set but not used warning
2016-03-23 12:34:56 -07:00
Evan Hunt
cf24cbd837
[master] adaptive RW locks
...
3440. [performance] Implement adaptive read-write locks, reducing the
overhead of locks that are only held briefly.
[RT #37329 ]
2016-03-22 17:59:21 -07:00
Francis Dupont
3759f10fc5
added print.h includes, updated copyrights
2015-05-23 14:21:51 +02:00
Tinderbox User
5fa46bc916
update copyright notice
2012-03-10 23:45:53 +00:00
Mark Andrews
28a8f5b0de
set $Id$
2012-03-08 00:21:15 +11:00
Automatic Updater
c1aef54e14
update copyright notice
2011-03-12 04:59:49 +00:00
Mark Andrews
0874abad14
3069. [cleanup] Silence warnings messages from clang static analysis.
...
[RT #20256 ]
2011-03-11 06:11:27 +00:00
Automatic Updater
9a14f870dd
update copyright notice
2009-01-18 23:48:14 +00:00
Francis Dupont
a05abc1767
spelling
2009-01-18 00:50:21 +00:00
Automatic Updater
70e5a7403f
update copyright notice
2007-06-19 23:47:24 +00:00
Automatic Updater
ec5347e2c7
update copyright notice
2007-06-18 23:47:57 +00:00
Mark Andrews
18d0b5e54b
1900. [port] freebsd: pthread_mutex_init can fail if it runs out
...
of memory. [RT #14995 ]
2005-07-12 01:00:20 +00:00
Tatuya JINMEI 神明達哉
5597be9bb8
1813. [func] Restructured the data locking framework using
...
architecture dependent atomic operations (when
available), improving response performance on
multi-processor machines significantly.
x86, x86_64, alpha, and sparc64 are currently
supported.
(RT #13505 )
2005-06-04 05:32:50 +00:00
Rob Austein
ab023a6556
1851. [doc] Doxygen comment markup. [RT #11398 ]
2005-04-27 04:57:32 +00:00
Mark Andrews
b7b6b01a0d
update copyright
2005-03-16 00:55:19 +00:00
Mark Andrews
7d9b632906
1828. [bug] isc_rwlock_init() failed to properly cleanup if it
...
encountered a error. [RT #13549 ]
2005-03-15 02:03:11 +00:00
Mark Andrews
dafcb997e3
update copyright notice
2004-03-05 05:14:21 +00:00
Mark Andrews
ce08911be8
typo
2003-07-23 03:18:56 +00:00
Mark Andrews
17a14e451d
1492. [cleanup] Preserve rwlock quota context when upgrading /
...
downgrading. [RT #5599 ]
2003-07-21 01:14:18 +00:00
Mark Andrews
163547c0c0
1461. [bug] Remove deadlock from rbtdb code. [RT #5999 ]
2003-04-17 01:56:35 +00:00
David Lawrence
1bd5b8aac6
use ISC_MAGIC to define magic number
2001-04-17 14:36:45 +00:00
David Lawrence
79ed194592
sigh. always test recompile things even after a minor change. after deciding
...
to _not_ much with the lock tracing/printing facility for the last change,
i forgot to also add the new result variable back into the stack
declarations, where i had correctly put it the first time.
2001-04-17 13:42:32 +00:00
David Lawrence
8e60ba90e0
unlock the mutex when non-blocking locking is attempted and the lock is busy.
2001-04-17 04:07:38 +00:00
Bob Halley
c6237585d8
Fix some typos in the non-threaded version of isc_rwlock_trylock() that
...
were preventing compilation.
2001-03-08 19:52:13 +00:00
David Lawrence
a82fd2c01b
added non-blocking locking, isc_rwlock_trylock()
2001-03-08 00:55:15 +00:00
Andreas Gustafsson
91f74728a7
UNUSED()
2001-02-07 20:03:23 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
David Lawrence
9cd6d409b7
first pass at using isc_msgcat_get for message strings in libisc
2000-12-06 00:30:32 +00:00
Brian Wellington
3c7f352550
single-threaded versions.
2000-08-29 00:33:36 +00:00
Brian Wellington
a44038277a
MOre calls to DESTROYLOCK
2000-08-26 01:31:56 +00:00
Brian Wellington
f5ad7569cb
#include <stddef.h>
2000-08-24 23:26:13 +00:00
Brian Wellington
3cab47dbea
A read lock could incorrectly be granted in some cases.
2000-08-24 19:06:38 +00:00
Andreas Gustafsson
249b19d917
print lock address and thread ID in rwlock trace messages
2000-08-24 17:06:31 +00:00