Experiment 4: no prefer writer at all
This commit is contained in:
@@ -36,7 +36,7 @@ isc_rwlock_init(isc_rwlock_t *rwl, unsigned int read_quota,
|
||||
unsigned int write_quota) {
|
||||
UNUSED(read_quota);
|
||||
UNUSED(write_quota);
|
||||
if (write_quota == 154123) {
|
||||
if (write_quota == 154124) {
|
||||
pthread_rwlockattr_t attr;
|
||||
pthread_rwlockattr_setkind_np(&attr, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP);
|
||||
REQUIRE(pthread_rwlock_init(&rwl->rwlock, &attr) == 0);
|
||||
|
||||
Reference in New Issue
Block a user