projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hash table test: FreeBSD compatibility fix
[urcu.git]
/
tests
/
test_rwlock.c
diff --git
a/tests/test_rwlock.c
b/tests/test_rwlock.c
index 9c8f97e39cf2232be5f461a655102ba1c3feac07..34d8c0727b271aab00241173154c9c8f825fc4a1 100644
(file)
--- a/
tests/test_rwlock.c
+++ b/
tests/test_rwlock.c
@@
-201,11
+201,11
@@
void *thr_reader(void *_count)
for (;;) {
pthread_rwlock_rdlock(&lock);
assert(test_array.a == 8);
for (;;) {
pthread_rwlock_rdlock(&lock);
assert(test_array.a == 8);
- if (unlikely(rduration))
+ if (
caa_
unlikely(rduration))
loop_sleep(rduration);
pthread_rwlock_unlock(&lock);
nr_reads++;
loop_sleep(rduration);
pthread_rwlock_unlock(&lock);
nr_reads++;
- if (unlikely(!test_duration_read()))
+ if (
caa_
unlikely(!test_duration_read()))
break;
}
break;
}
@@
-234,13
+234,13
@@
void *thr_writer(void *_count)
pthread_rwlock_wrlock(&lock);
test_array.a = 0;
test_array.a = 8;
pthread_rwlock_wrlock(&lock);
test_array.a = 0;
test_array.a = 8;
- if (unlikely(wduration))
+ if (
caa_
unlikely(wduration))
loop_sleep(wduration);
pthread_rwlock_unlock(&lock);
nr_writes++;
loop_sleep(wduration);
pthread_rwlock_unlock(&lock);
nr_writes++;
- if (unlikely(!test_duration_write()))
+ if (
caa_
unlikely(!test_duration_write()))
break;
break;
- if (unlikely(wdelay))
+ if (
caa_
unlikely(wdelay))
loop_sleep(wdelay);
}
loop_sleep(wdelay);
}
This page took
0.025761 seconds
and
4
git commands to generate.