From df02a2011b7e7ad44970c5131498a8b085c47fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Mon, 24 Feb 2020 19:02:15 +0100 Subject: [PATCH] pthread_yield in rbtdb --- lib/dns/rbtdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 10706b4aa0..c5123748ad 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -2808,6 +2808,7 @@ findnodeintree(dns_rbtdb_t *rbtdb, dns_rbt_t *tree, const dns_name_t *name, * unlocking then relocking. */ __sync_synchronize(); + pthread_yield(); locktype = isc_rwlocktype_write; RWLOCK(&rbtdb->tree_lock, locktype); node = NULL;