# else
/* Turn on GC_win32_dll_threads. */
GC_ASSERT(!parallel_initialized);
+ /* Note that GC_use_threads_discovery is expected to be called by */
+ /* the client application (not from DllMain) at start-up. */
# ifndef GC_DISCOVER_TASK_THREADS
GC_win32_dll_threads = TRUE;
# endif
DWORD thread_id;
static int entry_count = 0;
+ /* Note that GC_use_threads_discovery should be called by the */
+ /* client application at start-up to activate automatic thread */
+ /* registration (it is the default GC behavior since v7.0alpha7); */
+ /* to always have automatic thread registration turned on, the GC */
+ /* should be compiled with -D GC_DISCOVER_TASK_THREADS. */
if (!GC_win32_dll_threads && parallel_initialized) return TRUE;
switch (reason) {
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="../../libatomic_ops/src/"
- PreprocessorDefinitions="GC_BUILD"
+ PreprocessorDefinitions="GC_BUILD;GC_DISCOVER_TASK_THREADS"
UsePrecompiledHeader="0"
/>
<Tool
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="../../libatomic_ops/src/"
- PreprocessorDefinitions="GC_BUILD"
+ PreprocessorDefinitions="GC_BUILD;GC_DISCOVER_TASK_THREADS"
UsePrecompiledHeader="0"
/>
<Tool
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="../../libatomic_ops/src/"
- PreprocessorDefinitions="GC_BUILD"
+ PreprocessorDefinitions="GC_BUILD;GC_DISCOVER_TASK_THREADS"
UsePrecompiledHeader="0"
/>
<Tool
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="../../libatomic_ops/src/"
- PreprocessorDefinitions="GC_BUILD"
+ PreprocessorDefinitions="GC_BUILD;GC_DISCOVER_TASK_THREADS"
UsePrecompiledHeader="0"
/>
<Tool