projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unlikely for tests
[urcu.git]
/
test_urcu.c
diff --git
a/test_urcu.c
b/test_urcu.c
index d300610e049dc907147228e40d1c2b34245942b4..58612815f3c2bbd4882593edf549f935f152593e 100644
(file)
--- a/
test_urcu.c
+++ b/
test_urcu.c
@@
-168,7
+168,7
@@
void *thr_reader(void *_count)
assert(local_ptr->a == 8);
rcu_read_unlock();
nr_reads++;
assert(local_ptr->a == 8);
rcu_read_unlock();
nr_reads++;
- if (
!test_duration_read(
))
+ if (
unlikely(!test_duration_read()
))
break;
}
break;
}
@@
-208,9
+208,9
@@
void *thr_writer(void *_count)
old->a = 0;
test_array_free(old);
nr_writes++;
old->a = 0;
test_array_free(old);
nr_writes++;
- if (
!test_duration_write(
))
+ if (
unlikely(!test_duration_write()
))
break;
break;
- if (
wdelay
)
+ if (
unlikely(wdelay)
)
usleep(wdelay);
}
usleep(wdelay);
}
This page took
0.02444 seconds
and
4
git commands to generate.