2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Implement isc_rwlock_downgrade using pthreads and single atomic_bool

This commit is contained in:
Ondřej Surý
2018-11-22 11:42:12 +01:00
parent 64fbffbbaa
commit 4501f646ee
2 changed files with 27 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ typedef enum {
struct isc_rwlock {
pthread_rwlock_t rwlock;
atomic_bool downgrade;
};
#else /* HAVE_PTHREAD_RWLOCK_RDLOCK */