projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc/examples: cds_list_replace_rcu
[userspace-rcu.git]
/
tests
/
api.h
diff --git
a/tests/api.h
b/tests/api.h
index 2b876565c991351a86f3c61748addc1d20b1a68a..dced0d8d204e15b84252f1f374f7b5027d12490b 100644
(file)
--- a/
tests/api.h
+++ b/
tests/api.h
@@
-151,9
+151,10
@@
static int __smp_thread_id(void)
}
spin_lock(&__thread_id_map_mutex);
for (i = 0; i < NR_THREADS; i++) {
}
spin_lock(&__thread_id_map_mutex);
for (i = 0; i < NR_THREADS; i++) {
- if (__thread_id_map[i] == tid)
+ if (__thread_id_map[i] == tid)
{
spin_unlock(&__thread_id_map_mutex);
return i;
spin_unlock(&__thread_id_map_mutex);
return i;
+ }
}
spin_unlock(&__thread_id_map_mutex);
fprintf(stderr, "smp_thread_id: Rogue thread, id: %lu(%#lx)\n",
}
spin_unlock(&__thread_id_map_mutex);
fprintf(stderr, "smp_thread_id: Rogue thread, id: %lu(%#lx)\n",
This page took
0.023519 seconds
and
4
git commands to generate.