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
d110e1f2
Commit
d110e1f2
authored
Jul 21, 2004
by
Emmanuel Maillard
Committed by
Alexandre Julliard
Jul 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wine_pthread_init_thread: retrieve the stack info on Darwin.
parent
0b63877e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
+22
-3
configure
configure
+7
-1
configure.ac
configure.ac
+6
-2
config.h.in
include/config.h.in
+6
-0
pthread.c
loader/pthread.c
+3
-0
No files found.
configure
View file @
d110e1f2
...
...
@@ -11133,7 +11133,13 @@ fi
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"
$LIBS
$LIBPTHREAD
"
for
ac_func
in
pthread_getattr_np
for
ac_func
in
\
pthread_getattr_np
\
pthread_get_stackaddr_np
\
pthread_get_stacksize_np
\
do
as_ac_var
=
`
echo
"ac_cv_func_
$ac_func
"
|
$as_tr_sh
`
echo
"
$as_me
:
$LINENO
: checking for
$ac_func
"
>
&5
...
...
configure.ac
View file @
d110e1f2
...
...
@@ -548,10 +548,14 @@ dnl **** Check for pthread_rwlock_t ****
AC_CHECK_TYPES([pthread_rwlock_t, pthread_rwlockattr_t],,,[#define _GNU_SOURCE
#include <pthread.h>])
dnl **** Check for pthread
_getattr_np
****
dnl **** Check for pthread
functions
****
ac_save_LIBS="$LIBS"
LIBS="$LIBS $LIBPTHREAD"
AC_CHECK_FUNCS(pthread_getattr_np)
AC_CHECK_FUNCS(\
pthread_getattr_np \
pthread_get_stackaddr_np \
pthread_get_stacksize_np \
)
LIBS="$ac_save_LIBS"
dnl **** Check for Open Sound System ****
...
...
include/config.h.in
View file @
d110e1f2
...
...
@@ -449,6 +449,12 @@
/* Define to 1 if you have the `pthread_getattr_np' function. */
#undef HAVE_PTHREAD_GETATTR_NP
/* Define to 1 if you have the `pthread_get_stackaddr_np' function. */
#undef HAVE_PTHREAD_GET_STACKADDR_NP
/* Define to 1 if you have the `pthread_get_stacksize_np' function. */
#undef HAVE_PTHREAD_GET_STACKSIZE_NP
/* Define to 1 if you have the <pthread.h> header file. */
#undef HAVE_PTHREAD_H
...
...
loader/pthread.c
View file @
d110e1f2
...
...
@@ -69,6 +69,9 @@ void wine_pthread_init_thread( struct wine_pthread_thread_info *info )
pthread_attr_t
attr
;
pthread_getattr_np
(
pthread_self
(),
&
attr
);
pthread_attr_getstack
(
&
attr
,
&
info
->
stack_base
,
&
info
->
stack_size
);
#elif defined(HAVE_PTHREAD_GET_STACKSIZE_NP) && defined(HAVE_PTHREAD_GET_STACKADDR_NP)
info
->
stack_size
=
pthread_get_stacksize_np
(
pthread_self
());
info
->
stack_base
=
pthread_get_stackaddr_np
(
pthread_self
());
#else
/* assume that the stack allocation is page aligned */
char
dummy
;
...
...
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