pthread_yield in rbtdb

This commit is contained in:
Witold Kręcicki
2020-02-24 19:02:15 +01:00
parent fb30e94bf8
commit df02a2011b
+1
View File
@@ -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;