]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make isc_rwlock.c thread-safe
authorOndřej Surý <ondrej@sury.org>
Mon, 13 May 2019 17:19:11 +0000 (00:19 +0700)
committerOndřej Surý <ondrej@isc.org>
Wed, 3 Jul 2019 04:05:34 +0000 (00:05 -0400)
commit49462cf9747261cbc39d5fa4c691b64ac5472af4
tree5b54aff1a30c2a6d4bf88bf5fa8a2adae4ba8e6b
parent7c95192691a8884d71fcf6f7ae5a8caa3ac77465
Make isc_rwlock.c thread-safe

The ThreadSanitizer found several possible data races in our rwlock
implementation.  This commit changes all the unprotected variables to atomic and
also changes the explicit memory ordering (atomic_<foo>_explicit(..., <order>)
functions to use our convenience macros (atomic_<foo>_<order>).
lib/isc/include/isc/rwlock.h
lib/isc/rwlock.c