]> 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>
Tue, 11 Feb 2020 10:49:01 +0000 (11:49 +0100)
commit1da0994ea4dd09dbf8b503bfa08a6f874e24978c
treed6e5700fbc9e568a085230e057e6e0753a4f7cc1
parent50058a4bc8521d386f4995289c771719ff7eed46
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