6 // On some OS's (darwin) you must actually access a thread local variable
7 // before you can read it
11 // Create some TLS storage within the static executable.
12 __thread
int var_static
= 44;
14 void *fn_static(void *param
)
18 usleep(1); // thread breakpoint
23 int main (int argc
, char const *argv
[])
26 pthread_create(&handle
, NULL
, &fn_static
, NULL
);
30 usleep(1); // main breakpoint