Branch: Tag:

2003-04-01

2003-04-01 19:41:13 by Martin Stjernholm <mast@lysator.liu.se>

Better checking of error return codes from various thread functions. Added
-dT to enable error checking mutexes in the thread library (--with-rtldebug
is _not_ required).

Rev: man/pike.1:1.17
Rev: src/acconfig.h:1.123
Rev: src/aclocal.m4:1.68
Rev: src/configure.in:1.713
Rev: src/main.c:1.171
Rev: src/main.h:1.22
Rev: src/pike_threadlib.h:1.39
Rev: src/threads.c:1.214

1: - AC_REVISION("$Id: configure.in,v 1.712 2003/04/01 19:10:53 mast Exp $") + AC_REVISION("$Id: configure.in,v 1.713 2003/04/01 19:41:13 mast Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
3081:      ########################################################################    + PIKE_CHECK_CONSTANTS(mutex error check flag, +  PTHREAD_MUTEX_ERRORCHECK PTHREAD_MUTEX_ERRORCHECK_NP, [ + #ifdef HAVE_PTHREAD_H + #include <pthread.h> + #elif defined (HAVE_THREAD_H) + #include <thread.h> + #endif +  ], PIKE_MUTEX_ERRORCHECK) +  + ######################################################################## +  + PIKE_CHECK_CONSTANTS(recursive mutex flag, +  PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP, [ + #ifdef HAVE_PTHREAD_H + #include <pthread.h> + #elif defined (HAVE_THREAD_H) + #include <thread.h> + #endif +  ], PIKE_MUTEX_RECURSIVE) +  + ######################################################################## +    # NOTE: The following test is hardcoded to fail when crosscompiling   # It also clobbers $LIBOBJS.   
4055:   ])      ######################################################################## - MY_CHECK_FUNCTION(PTHREAD_MUTEX_RECURSIVE, - [ - #include <pthread.h> - ], [ -  PTHREAD_MUTEX_RECURSIVE; -  exit(0); - ]) - ######################################################################## - MY_CHECK_FUNCTION(PTHREAD_MUTEX_RECURSIVE_NP, - [ - #include <pthread.h> - ], [ -  PTHREAD_MUTEX_RECURSIVE_NP; -  exit(0); - ]) - ######################################################################## +    MY_CHECK_FUNCTION(fpsetmask,   [   #include <math.h>