_Thread_local storage class specifier in C?
问题 I read a note in the book C How to Program 7th about some new standard C storage class named _Thread_local : The new C standard adds storage class specifier _Thread_local , which is beyond this book's scope. I looked for it in Google and here but nothing show up. Could someone please provide me some link about it? 回答1: Variables marked with _Thread_local are given "thread" storage duration -- that is, they are allocated when a thread begins, and deallocated when the thread ends. Such