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
6caeb721
Commit
6caeb721
authored
Nov 25, 2002
by
Patrik Stridvall
Committed by
Alexandre Julliard
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pthreads on FreeBSD (based on patch by Alexandre Julliard).
parent
1b20db4f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
3 deletions
+62
-3
configure
configure
+10
-0
configure.ac
configure.ac
+5
-0
config.h.in
include/config.h.in
+15
-0
port.c
library/port.c
+24
-0
pthread.c
scheduler/pthread.c
+8
-3
No files found.
configure
View file @
6caeb721
...
...
@@ -11549,6 +11549,11 @@ fi
for
ac_func
in
\
_lwp_create
\
_pclose
\
...
...
@@ -11580,6 +11585,11 @@ for ac_func in \
pclose
\
popen
\
pread
\
pthread_getspecific
\
pthread_key_create
\
pthread_mutex_lock
\
pthread_mutex_unlock
\
pthread_setspecific
\
pwrite
\
rfork
\
select
\
...
...
configure.ac
View file @
6caeb721
...
...
@@ -947,6 +947,11 @@ AC_CHECK_FUNCS(\
pclose \
popen \
pread \
pthread_getspecific \
pthread_key_create \
pthread_mutex_lock \
pthread_mutex_unlock \
pthread_setspecific \
pwrite \
rfork \
select \
...
...
include/config.h.in
View file @
6caeb721
...
...
@@ -368,6 +368,21 @@
/* Define to 1 if you have the `pread' function. */
#undef HAVE_PREAD
/* Define to 1 if you have the `pthread_getspecific' function. */
#undef HAVE_PTHREAD_GETSPECIFIC
/* Define to 1 if you have the `pthread_key_create' function. */
#undef HAVE_PTHREAD_KEY_CREATE
/* Define to 1 if you have the `pthread_mutex_lock' function. */
#undef HAVE_PTHREAD_MUTEX_LOCK
/* Define to 1 if you have the `pthread_mutex_unlock' function. */
#undef HAVE_PTHREAD_MUTEX_UNLOCK
/* Define to 1 if you have the `pthread_setspecific' function. */
#undef HAVE_PTHREAD_SETSPECIFIC
/* Define to 1 if you have the <pty.h> header file. */
#undef HAVE_PTY_H
...
...
library/port.c
View file @
6caeb721
...
...
@@ -680,6 +680,30 @@ void *wine_memcpy_unaligned( void *dst, const void *src, size_t size )
/***********************************************************************
* pthread functions
*/
#ifndef HAVE_PTHREAD_GETSPECIFIC
void
pthread_getspecific
()
{
assert
(
0
);
}
#endif
#ifndef HAVE_PTHREAD_KEY_CREATE
void
pthread_key_create
()
{
assert
(
0
);
}
#endif
#ifndef HAVE_PTHREAD_MUTEX_LOCK
void
pthread_mutex_lock
()
{
assert
(
0
);
}
#endif
#ifndef HAVE_PTHREAD_MUTEX_UNLOCK
void
pthread_mutex_unlock
()
{
assert
(
0
);
}
#endif
#ifndef HAVE_PTHREAD_SETSPECIFIC
void
pthread_setspecific
()
{
assert
(
0
);
}
#endif
/***********************************************************************
* interlocked functions
*/
#ifdef __i386__
...
...
scheduler/pthread.c
View file @
6caeb721
...
...
@@ -44,7 +44,12 @@
* If they are not available, the libc defaults to
* non-threadsafe operation (not good). */
#if defined(__GLIBC__)
#if defined(__GLIBC__) || defined(__FreeBSD__)
#ifndef __USE_UNIX98
#define __USE_UNIX98
#endif
#include <pthread.h>
#include <signal.h>
...
...
@@ -368,7 +373,7 @@ strong_alias(__pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np);
int
__pthread_mutexattr_getkind_np
(
pthread_mutexattr_t
*
attr
,
int
*
kind
)
{
*
kind
=
PTHREAD_MUTEX_RECURSIVE
_NP
;
*
kind
=
PTHREAD_MUTEX_RECURSIVE
;
return
0
;
}
strong_alias
(
__pthread_mutexattr_getkind_np
,
pthread_mutexattr_getkind_np
);
...
...
@@ -381,7 +386,7 @@ strong_alias(__pthread_mutexattr_settype, pthread_mutexattr_settype);
int
__pthread_mutexattr_gettype
(
pthread_mutexattr_t
*
attr
,
int
*
kind
)
{
*
kind
=
PTHREAD_MUTEX_RECURSIVE
_NP
;
*
kind
=
PTHREAD_MUTEX_RECURSIVE
;
return
0
;
}
strong_alias
(
__pthread_mutexattr_gettype
,
pthread_mutexattr_gettype
);
...
...
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