Like this.
struct some_struct { // Other fields ..... __thread int tl; }
I\'m trying to do that but the compiler is giving me this error
You should change __thread int tl; to thread_local static int tl;
__thread int tl;
thread_local static int tl;