Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ab2a616

Browse filesBrowse files
committed
Guard queueLog4cplusInitializationThroughAPC() call with LOG4CPLUS_REQUIRE_EXPLICIT_INITIALIZATION.
1 parent d68a1a6 commit ab2a616
Copy full SHA for ab2a616

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎src/global-init.cxx

Copy file name to clipboardExpand all lines: src/global-init.cxx
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,11 +692,13 @@ thread_callback (LPVOID /*hinstDLL*/, DWORD fdwReason, LPVOID /*lpReserved*/)
692692
{
693693
case DLL_PROCESS_ATTACH:
694694
{
695+
#if ! defined (LOG4CPLUS_REQUIRE_EXPLICIT_INITIALIZATION)
695696
// We cannot initialize log4cplus directly here. This is because
696697
// DllMain() is called under loader lock. When we are using C++11
697698
// threads and synchronization primitives then there is a deadlock
698699
// somewhere in internals of std::mutex::lock().
699700
queueLog4cplusInitializationThroughAPC ();
701+
#endif
700702
break;
701703
}
702704

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.