projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update version to 0.4.2
[urcu.git]
/
urcu.c
diff --git
a/urcu.c
b/urcu.c
index a3ceca3f5263be7812288f4e909eed6878246980..b8567555d09ecbb22547aa6f236392d439eea871 100644
(file)
--- a/
urcu.c
+++ b/
urcu.c
@@
-233,7
+233,7
@@
void update_counter_and_wait(void)
}
list_for_each_entry_safe(index, tmp, ®istry, head) {
}
list_for_each_entry_safe(index, tmp, ®istry, head) {
- if (!rcu_
old_
gp_ongoing(&index->ctr))
+ if (!rcu_gp_ongoing(&index->ctr))
list_move(&index->head, &qsreaders);
}
list_move(&index->head, &qsreaders);
}
@@
-346,7
+346,7
@@
void rcu_register_thread(void)
{
rcu_reader.tid = pthread_self();
assert(rcu_reader.need_mb == 0);
{
rcu_reader.tid = pthread_self();
assert(rcu_reader.need_mb == 0);
- assert(
rcu_reader.ctr == 0
);
+ assert(
!(rcu_reader.ctr & RCU_GP_CTR_NEST_MASK)
);
mutex_lock(&rcu_gp_lock);
rcu_init(); /* In case gcc does not support constructor attribute */
mutex_lock(&rcu_gp_lock);
rcu_init(); /* In case gcc does not support constructor attribute */
This page took
0.024094 seconds
and
4
git commands to generate.