G
Guest
Hi
Introduction
*********
I am writing a managed profiler using the ICorProfiler*.* API, this involves ceration of an agent DLL loaded by the profiled ( debugee ) process, I need to use TLS to hold some thread specific data
The query
*******
Does using __declspec( thread ) from within the Agent DLL (loaded by the hosting profiled process) ) gurantee that ALL of the threads in the process ( those that were created by the agent and those created be the hosing process ) will have the thread parameter allocated? or should I rather use the Tls*.* Win32 API upon each process creation for TLS initialization
Thanks in advance
Nadav.
Introduction
*********
I am writing a managed profiler using the ICorProfiler*.* API, this involves ceration of an agent DLL loaded by the profiled ( debugee ) process, I need to use TLS to hold some thread specific data
The query
*******
Does using __declspec( thread ) from within the Agent DLL (loaded by the hosting profiled process) ) gurantee that ALL of the threads in the process ( those that were created by the agent and those created be the hosing process ) will have the thread parameter allocated? or should I rather use the Tls*.* Win32 API upon each process creation for TLS initialization
Thanks in advance
Nadav.