'identifier' : 'thread' is only valid for data items of static extent
An automatic variable, nonstatic data member of a class, or a function parameter cannot be declared with the thread attribute.
A global variable, a static data member variable or a local static variable can be declared with the thread attribute.