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.
1 parent 0787ce6 commit bc60a63Copy full SHA for bc60a63
CoreFoundation/Base.subproj/CFRuntime.c
@@ -1175,6 +1175,12 @@ void __CFInitialize(void) {
1175
if (!__CFInitialized && !__CFInitializing) {
1176
__CFInitializing = 1;
1177
1178
+#if __HAS_DISPATCH__
1179
+ // libdispatch has to be initialized before CoreFoundation, so to avoid
1180
+ // issues with static initializer ordering, we are doing it explicitly.
1181
+ libdispatch_init();
1182
+#endif
1183
+
1184
// This is a no-op on Darwin, but is needed on Linux and Windows.
1185
_CFPerformDynamicInitOfOSRecursiveLock(&CFPlugInGlobalDataLock);
1186
0 commit comments