a.c 181 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include <unistd.h> __thread int var_shared = 33; int touch_shared() { return var_shared; } void shared_check() { var_shared *= 2; usleep(1); // shared thread breakpoint }