loader: On Mac, if Wine is already on secondary thread, don't reserve it for the system frameworks.

oldstable
Ken Thomases 2013-04-16 00:37:48 -05:00 committed by Alexandre Julliard
parent b93e61acf1
commit cf73350d9f
1 changed files with 6 additions and 0 deletions

View File

@ -761,6 +761,12 @@ static void apple_main_thread( void (*init_func)(void) )
CFRunLoopSourceContext source_context = { 0 };
CFRunLoopSourceRef source;
if (!pthread_main_np())
{
init_func();
return;
}
/* 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
* that doesn't happen. */