##################################
# Other conditional definitions
append_definitions("-D KMP_USE_ASSERT")
- append_definitions("-D GUIDEDLL_EXPORTS")
+ append_definitions("-D KMP_DYNAMIC_LIB")
if(${STUBS_LIBRARY})
append_definitions("-D KMP_STUB")
endif()
/* ------------------------------------------------------------------------ */
-#ifdef GUIDEDLL_EXPORTS
+#ifdef KMP_DYNAMIC_LIB
# if KMP_OS_WINDOWS
}
# endif /* KMP_OS_WINDOWS */
-#endif /* GUIDEDLL_EXPORTS */
+#endif /* KMP_DYNAMIC_LIB */
/* ------------------------------------------------------------------------ */
if(nNeed > nWish) /* normalize the arguments */
nWish = nNeed;
-#if KMP_OS_WINDOWS && !defined GUIDEDLL_EXPORTS
+#if KMP_OS_WINDOWS && !defined KMP_DYNAMIC_LIB
/* only for Windows static library */
/* reclaim array entries for root threads that are already dead */
added = __kmp_reclaim_dead_roots();
__kmp_internal_end_thread( gtid );
}
-#if KMP_OS_UNIX && GUIDEDLL_EXPORTS
+#if KMP_OS_UNIX && KMP_DYNAMIC_LIB
// 2009-09-08 (lev): It looks the destructor does not work. In simple test cases destructors work
// perfectly, but in real libiomp5.so I have no evidence it is ever called. However, -fini linker
return;
}
}
- #if defined GUIDEDLL_EXPORTS
+ #if defined KMP_DYNAMIC_LIB
// AC: lets not shutdown the Linux* OS dynamic library at the exit of uber thread,
// because we will better shutdown later in the library destructor.
// The reason of this change is performance problem when non-openmp thread
__kmp_register_atfork();
#endif
- #if ! defined GUIDEDLL_EXPORTS
+ #if ! defined KMP_DYNAMIC_LIB
{
/* Invoke the exit handler when the program finishes, only for static library.
For dynamic library, we already have _fini and DllMain.
return;
};
-#if GUIDEDLL_EXPORTS
+#if KMP_DYNAMIC_LIB
/* Pin dynamic library for the lifetime of application */
{
// First, turn off error message boxes
#endif /* KMP_ARCH_X86 || KMP_ARCH_X86_64 */
/* Set up minimum number of threads to switch to TLS gtid */
- #if KMP_OS_WINDOWS && ! defined GUIDEDLL_EXPORTS
+ #if KMP_OS_WINDOWS && ! defined KMP_DYNAMIC_LIB
// Windows* OS, static library.
/*
New thread may use stack space previously used by another thread, currently terminated.