Cleanup: doc/examples makefile
[urcu.git] / tests / api.h
index 2b876565c991351a86f3c61748addc1d20b1a68a..dced0d8d204e15b84252f1f374f7b5027d12490b 100644 (file)
@@ -151,9 +151,10 @@ static int __smp_thread_id(void)
        }
        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);
        fprintf(stderr, "smp_thread_id: Rogue thread, id: %lu(%#lx)\n",
This page took 0.022287 seconds and 4 git commands to generate.