Hello,
I have several global variables which are objects of user defined classes. I need to instantiate them with the thread attribute by using "__declspec (thread)".
but currently, Thread Local Storage (TLS) has only been implemented for aggregate types (such as int, float, char ...).
using "__declspec (thread)" to declare these objects, generetes following error:
error C2483: object with constructor cannot be declared 'thread'
How can I declare an object with constructor and data members as thread??
How can I resolve this problem?
Is there any library that supports TLS?