c++ - What does it mean that thread_local is not used inside thread? -


there code:

int thread_local y = 4;  int main() {    y++;    return 0; } 

what mean variable y used not in thread (in main function) - there no threads spawned? main thread counted "normal" thread?

is main thread counted "normal" thread?

yes.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -