We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23c2dbb + 68b2f1a commit 381cb8cCopy full SHA for 381cb8c
thread-rcu/main.c
@@ -71,7 +71,7 @@ static void *reader_func(void *argv)
71
if (tmp->count != old_prev_count)
72
atomic_fetch_add_explicit(&gp_idx, 1, memory_order_release);
73
if (atomic_load_explicit(&gp_idx, memory_order_acquire) >
74
- N_UPDATE_RUN + 1) {
+ N_UPDATE_RUN) {
75
fprintf(stderr, "grace period index (%u) is over bound (%u).\n",
76
atomic_load_explicit(&gp_idx, memory_order_acquire),
77
N_UPDATE_RUN);
0 commit comments