>>391
posix threadならTLSになってる
gccなら -pthreadとか