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
4aa98e03
Commit
4aa98e03
authored
Mar 26, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Get rid of the definitions for the pthread emulation.
parent
c4567214
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
275 deletions
+6
-275
configure
configure
+0
-214
configure.ac
configure.ac
+0
-4
config.h.in
include/config.h.in
+0
-6
pthread.h
include/wine/pthread.h
+0
-51
pthread.c
loader/pthread.c
+6
-0
No files found.
configure
View file @
4aa98e03
...
...
@@ -15227,220 +15227,6 @@ _ACEOF
fi
{
$as_echo
"
$as_me
:
$LINENO
: checking for pthread_rwlock_t"
>
&5
$as_echo_n
"checking for pthread_rwlock_t... "
>
&6
;
}
if
test
"
${
ac_cv_type_pthread_rwlock_t
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
ac_cv_type_pthread_rwlock_t
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#define _GNU_SOURCE
#include <pthread.h>
int
main ()
{
if (sizeof (pthread_rwlock_t))
return 0;
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
ac_try
=
"
$ac_compile
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
ac_try_echo
=
"
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
$as_echo
"
$ac_try_echo
"
)
>
&5
(
eval
"
$ac_compile
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#define _GNU_SOURCE
#include <pthread.h>
int
main ()
{
if (sizeof ((pthread_rwlock_t)))
return 0;
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
ac_try
=
"
$ac_compile
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
ac_try_echo
=
"
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
$as_echo
"
$ac_try_echo
"
)
>
&5
(
eval
"
$ac_compile
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
:
else
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_type_pthread_rwlock_t
=
yes
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
else
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$ac_cv_type_pthread_rwlock_t
"
>
&5
$as_echo
"
$ac_cv_type_pthread_rwlock_t
"
>
&6
;
}
if
test
"x
$ac_cv_type_pthread_rwlock_t
"
=
x
""
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_PTHREAD_RWLOCK_T 1
_ACEOF
fi
{
$as_echo
"
$as_me
:
$LINENO
: checking for pthread_rwlockattr_t"
>
&5
$as_echo_n
"checking for pthread_rwlockattr_t... "
>
&6
;
}
if
test
"
${
ac_cv_type_pthread_rwlockattr_t
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
ac_cv_type_pthread_rwlockattr_t
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#define _GNU_SOURCE
#include <pthread.h>
int
main ()
{
if (sizeof (pthread_rwlockattr_t))
return 0;
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
ac_try
=
"
$ac_compile
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
ac_try_echo
=
"
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
$as_echo
"
$ac_try_echo
"
)
>
&5
(
eval
"
$ac_compile
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#define _GNU_SOURCE
#include <pthread.h>
int
main ()
{
if (sizeof ((pthread_rwlockattr_t)))
return 0;
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
ac_try
=
"
$ac_compile
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
ac_try_echo
=
"
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
$as_echo
"
$ac_try_echo
"
)
>
&5
(
eval
"
$ac_compile
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
:
else
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_type_pthread_rwlockattr_t
=
yes
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
else
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$ac_cv_type_pthread_rwlockattr_t
"
>
&5
$as_echo
"
$ac_cv_type_pthread_rwlockattr_t
"
>
&6
;
}
if
test
"x
$ac_cv_type_pthread_rwlockattr_t
"
=
x
""
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_PTHREAD_RWLOCKATTR_T 1
_ACEOF
fi
ac_wine_check_funcs_save_LIBS
=
"
$LIBS
"
LIBS
=
"
$LIBS
$LIBPTHREAD
"
...
...
configure.ac
View file @
4aa98e03
...
...
@@ -1151,10 +1151,6 @@ then
AC_DEFINE(HAVE_PPDEV, 1, [Define if we can use ppdev.h for parallel port access])
fi
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 functions ****
WINE_CHECK_LIB_FUNCS(\
pthread_attr_get_np \
...
...
include/config.h.in
View file @
4aa98e03
...
...
@@ -594,12 +594,6 @@
/* Define to 1 if you have the <pthread_np.h> header file. */
#undef HAVE_PTHREAD_NP_H
/* Define to 1 if the system has the type `pthread_rwlockattr_t'. */
#undef HAVE_PTHREAD_RWLOCKATTR_T
/* Define to 1 if the system has the type `pthread_rwlock_t'. */
#undef HAVE_PTHREAD_RWLOCK_T
/* Define to 1 if you have the <pwd.h> header file. */
#undef HAVE_PWD_H
...
...
include/wine/pthread.h
View file @
4aa98e03
...
...
@@ -30,57 +30,6 @@ struct sigset_t;
typedef
struct
sigset_t
sigset_t
;
#endif
#ifdef HAVE_PTHREAD_H
#define _GNU_SOURCE
#include <pthread.h>
#ifdef HAVE_PTHREAD_NP_H
#include <pthread_np.h>
#endif
#ifndef HAVE_PTHREAD_RWLOCK_T
typedef
void
*
pthread_rwlock_t
;
#endif
#ifndef HAVE_PTHREAD_RWLOCKATTR_T
typedef
void
*
pthread_rwlockattr_t
;
#endif
struct
wine_pthread_callbacks
{
void
*
(
*
ptr_get_thread_data
)(
void
);
void
(
*
ptr_set_thread_data
)(
void
*
data
);
pthread_t
(
*
ptr_pthread_self
)(
void
);
int
(
*
ptr_pthread_equal
)(
pthread_t
thread1
,
pthread_t
thread2
);
int
(
*
ptr_pthread_create
)(
pthread_t
*
thread
,
const
pthread_attr_t
*
attr
,
void
*
(
*
start_routine
)(
void
*
),
void
*
arg
);
int
(
*
ptr_pthread_cancel
)(
pthread_t
thread
);
int
(
*
ptr_pthread_join
)(
pthread_t
thread
,
void
**
value_ptr
);
int
(
*
ptr_pthread_detach
)(
pthread_t
thread
);
void
(
*
ptr_pthread_exit
)(
void
*
retval
,
char
*
currentframe
);
int
(
*
ptr_pthread_mutex_init
)(
pthread_mutex_t
*
mutex
,
const
pthread_mutexattr_t
*
mutexattr
);
int
(
*
ptr_pthread_mutex_lock
)(
pthread_mutex_t
*
mutex
);
int
(
*
ptr_pthread_mutex_trylock
)(
pthread_mutex_t
*
mutex
);
int
(
*
ptr_pthread_mutex_unlock
)(
pthread_mutex_t
*
mutex
);
int
(
*
ptr_pthread_mutex_destroy
)(
pthread_mutex_t
*
mutex
);
int
(
*
ptr_pthread_rwlock_init
)(
pthread_rwlock_t
*
rwlock
,
const
pthread_rwlockattr_t
*
rwlock_attr
);
int
(
*
ptr_pthread_rwlock_destroy
)(
pthread_rwlock_t
*
rwlock
);
int
(
*
ptr_pthread_rwlock_rdlock
)(
pthread_rwlock_t
*
rwlock
);
int
(
*
ptr_pthread_rwlock_tryrdlock
)(
pthread_rwlock_t
*
rwlock
);
int
(
*
ptr_pthread_rwlock_wrlock
)(
pthread_rwlock_t
*
rwlock
);
int
(
*
ptr_pthread_rwlock_trywrlock
)(
pthread_rwlock_t
*
rwlock
);
int
(
*
ptr_pthread_rwlock_unlock
)(
pthread_rwlock_t
*
rwlock
);
int
(
*
ptr_pthread_cond_init
)(
pthread_cond_t
*
cond
,
const
pthread_condattr_t
*
cond_attr
);
int
(
*
ptr_pthread_cond_destroy
)(
pthread_cond_t
*
cond
);
int
(
*
ptr_pthread_cond_signal
)(
pthread_cond_t
*
cond
);
int
(
*
ptr_pthread_cond_broadcast
)(
pthread_cond_t
*
cond
);
int
(
*
ptr_pthread_cond_wait
)(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
);
int
(
*
ptr_pthread_cond_timedwait
)(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
,
const
struct
timespec
*
abstime
);
};
#endif
/* HAVE_PTHREAD_H */
/* thread information used to creating and exiting threads */
struct
wine_pthread_thread_info
{
...
...
loader/pthread.c
View file @
4aa98e03
...
...
@@ -39,6 +39,12 @@
#include <sys/ucontext.h>
#include <sys/thr.h>
#endif
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
#ifdef HAVE_PTHREAD_NP_H
#include <pthread_np.h>
#endif
#include "wine/library.h"
#include "wine/pthread.h"
...
...
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