'identifier' : dynamic initialization of 'thread' data not allowed
Variables that are declared with the thread attribute cannot be initialized with an expression that requires evaluation at run-time. A static expression must be used to initialize thread data.