Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
57343604
Commit
57343604
authored
Jan 07, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Jan 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Call the Mac Multi-Processing Services lib from the main thread first.
parent
bbb8c60c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
Makefile.in
libs/wine/Makefile.in
+1
-1
loader.c
libs/wine/loader.c
+16
-6
No files found.
libs/wine/Makefile.in
View file @
57343604
DLLFLAGS
=
@DLLFLAGS@
DLLFLAGS
=
@DLLFLAGS@
MODULE
=
libwine.
$(LIBEXT)
MODULE
=
libwine.
$(LIBEXT)
VERSCRIPT
=
$(srcdir)
/wine.map
VERSCRIPT
=
$(srcdir)
/wine.map
EXTRALIBS
=
$(LIBPORT)
@LIBDL@ @CRTLIBS@ @COREFOUNDATIONLIB@
EXTRALIBS
=
$(LIBPORT)
@LIBDL@ @CRTLIBS@ @COREFOUNDATIONLIB@
@CORESERVICESLIB@
DEFS
=
-D__WINESRC__
-DWINE_UNICODE_API
=
""
DEFS
=
-D__WINESRC__
-DWINE_UNICODE_API
=
""
VERSION
=
1.0
VERSION
=
1.0
...
...
libs/wine/loader.c
View file @
57343604
...
@@ -39,21 +39,26 @@
...
@@ -39,21 +39,26 @@
# include <unistd.h>
# include <unistd.h>
#endif
#endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h"
#include "winbase.h"
#include "wine/library.h"
#ifdef __APPLE__
#ifdef __APPLE__
#include <crt_externs.h>
#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#define environ (*_NSGetEnviron())
#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CoreFoundation.h>
#define LoadResource MacLoadResource
#define GetCurrentThread MacGetCurrentThread
#include <CoreServices/CoreServices.h>
#undef LoadResource
#undef GetCurrentThread
#include <pthread.h>
#include <pthread.h>
#else
#else
extern
char
**
environ
;
extern
char
**
environ
;
#endif
#endif
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h"
#include "winbase.h"
#include "wine/library.h"
/* argc/argv for the Windows application */
/* argc/argv for the Windows application */
int
__wine_main_argc
=
0
;
int
__wine_main_argc
=
0
;
char
**
__wine_main_argv
=
NULL
;
char
**
__wine_main_argv
=
NULL
;
...
@@ -756,6 +761,11 @@ static void apple_main_thread( void (*init_func)(void) )
...
@@ -756,6 +761,11 @@ static void apple_main_thread( void (*init_func)(void) )
CFRunLoopSourceContext
source_context
=
{
0
};
CFRunLoopSourceContext
source_context
=
{
0
};
CFRunLoopSourceRef
source
;
CFRunLoopSourceRef
source
;
/* 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. */
MPTaskIsPreemptive
(
MPCurrentTaskID
());
/* Give ourselves the best chance of having the distributed notification
/* Give ourselves the best chance of having the distributed notification
* center scheduled on this thread's run loop. In theory, it's scheduled
* center scheduled on this thread's run loop. In theory, it's scheduled
* in the first thread to ask for it. */
* in the first thread to ask for it. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment