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
fa4e97f4
Commit
fa4e97f4
authored
Aug 16, 2012
by
Jan Beich
Committed by
Alexandre Julliard
Aug 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Prefer a portable function to get thread id.
parent
20e1b46d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletion
+11
-1
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
server.c
dlls/ntdll/server.c
+6
-1
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
fa4e97f4
...
...
@@ -10611,6 +10611,7 @@ LIBS="$LIBS $LIBPTHREAD"
for
ac_func
in
\
pthread_attr_get_np
\
pthread_getattr_np
\
pthread_getthreadid_np
\
pthread_get_stackaddr_np
\
pthread_get_stacksize_np
do
:
...
...
configure.ac
View file @
fa4e97f4
...
...
@@ -1471,6 +1471,7 @@ dnl **** Check for pthread functions ****
WINE_CHECK_LIB_FUNCS(\
pthread_attr_get_np \
pthread_getattr_np \
pthread_getthreadid_np \
pthread_get_stackaddr_np \
pthread_get_stacksize_np,
[$LIBPTHREAD])
...
...
dlls/ntdll/server.c
View file @
fa4e97f4
...
...
@@ -28,6 +28,9 @@
#endif
#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_PTHREAD_NP_H
# include <pthread_np.h>
#endif
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
...
...
@@ -944,7 +947,9 @@ static void send_server_task_port(void)
static
int
get_unix_tid
(
void
)
{
int
ret
=
-
1
;
#ifdef linux
#ifdef HAVE_PTHREAD_GETTHREADID_NP
ret
=
pthread_getthreadid_np
();
#elif defined(linux)
ret
=
syscall
(
SYS_gettid
);
#elif defined(__sun)
ret
=
pthread_self
();
...
...
include/config.h.in
View file @
fa4e97f4
...
...
@@ -632,6 +632,9 @@
/* Define to 1 if you have the `pthread_getattr_np' function. */
#undef HAVE_PTHREAD_GETATTR_NP
/* Define to 1 if you have the `pthread_getthreadid_np' function. */
#undef HAVE_PTHREAD_GETTHREADID_NP
/* Define to 1 if you have the `pthread_get_stackaddr_np' function. */
#undef HAVE_PTHREAD_GET_STACKADDR_NP
...
...
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