We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
alloc = false
1 parent dcedb2e commit 0005c56Copy full SHA for 0005c56
include/log4cplus/internal/internal.h
@@ -150,17 +150,9 @@ set_ptd (per_thread_data * p)
150
}
151
152
153
-//! The default value of the \param alloc is false for Win32 DLL builds
154
-//! since per thread data are already initialized by DllMain().
155
inline
156
per_thread_data *
157
-get_ptd (bool alloc
158
-#if defined (_WIN32) && defined (LOG4CPLUS_BUILD_DLL)
159
- = false
160
-#else
161
- = true
162
-#endif
163
- )
+get_ptd (bool alloc = true)
164
{
165
if (LOG4CPLUS_UNLIKELY (! ptd && alloc))
166
return alloc_ptd ();
0 commit comments