forked from Mirrors/wine-wine
loader: On Mac, if Wine is already on secondary thread, don't reserve it for the system frameworks.
parent
b93e61acf1
commit
cf73350d9f
|
@ -761,6 +761,12 @@ static void apple_main_thread( void (*init_func)(void) )
|
||||||
CFRunLoopSourceContext source_context = { 0 };
|
CFRunLoopSourceContext source_context = { 0 };
|
||||||
CFRunLoopSourceRef source;
|
CFRunLoopSourceRef source;
|
||||||
|
|
||||||
|
if (!pthread_main_np())
|
||||||
|
{
|
||||||
|
init_func();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Multi-processing Services can get confused about the main thread if the
|
/* Multi-processing Services can get confused about the main thread if the
|
||||||
* first time it's used is on a secondary thread. Use it here to make sure
|
* first time it's used is on a secondary thread. Use it here to make sure
|
||||||
* that doesn't happen. */
|
* that doesn't happen. */
|
||||||
|
|
Loading…
Reference in New Issue