mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
Fix test for posix like pthread_cond_timedwait. (#70525)
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in: Fix test for posix like pthread_cond_timedwait. (#70525)
This commit is contained in:
parent
19a27ad809
commit
4f8c618407
@ -1,3 +1,8 @@
|
||||
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Fix test for posix like
|
||||
pthread_cond_timedwait. (#70525)
|
||||
|
||||
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Get the right multithread option for GCC 3.0 and
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Fix test for posix like
|
||||
pthread_cond_timedwait. (#70525)
|
||||
|
||||
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Get the right multithread option for GCC 3.0 and
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Fix test for posix like
|
||||
pthread_cond_timedwait. (#70525)
|
||||
|
||||
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Get the right multithread option for GCC 3.0 and
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Fix test for posix like
|
||||
pthread_cond_timedwait. (#70525)
|
||||
|
||||
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Get the right multithread option for GCC 3.0 and
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Fix test for posix like
|
||||
pthread_cond_timedwait. (#70525)
|
||||
|
||||
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Get the right multithread option for GCC 3.0 and
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Fix test for posix like
|
||||
pthread_cond_timedwait. (#70525)
|
||||
|
||||
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Get the right multithread option for GCC 3.0 and
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Fix test for posix like
|
||||
pthread_cond_timedwait. (#70525)
|
||||
|
||||
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Get the right multithread option for GCC 3.0 and
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Fix test for posix like
|
||||
pthread_cond_timedwait. (#70525)
|
||||
|
||||
2002-01-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Get the right multithread option for GCC 3.0 and
|
||||
|
@ -890,6 +890,7 @@ if test x"$have_threads" != xnone; then
|
||||
AC_MSG_CHECKING(whether pthread_cond_timedwait is posix like)
|
||||
# DCE Threads return -1 as failure, posix ETIMEDOUT.
|
||||
AC_TRY_RUN([#include <pthread.h>
|
||||
#include <sys/time.h>
|
||||
int main () {
|
||||
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
|
||||
@ -898,6 +899,7 @@ if test x"$have_threads" != xnone; then
|
||||
gettimeofday (&tval, NULL);
|
||||
tspec.tv_sec = tval.tv_sec;
|
||||
tspec.tv_nsec = 0;
|
||||
pthread_mutex_lock (&mutex);
|
||||
return pthread_cond_timedwait (&cond,&mutex,&tspec)
|
||||
!= -1;}],
|
||||
[AC_MSG_RESULT(no)],
|
||||
|
Loading…
x
Reference in New Issue
Block a user