Branch: Tag:

2003-11-25

2003-11-25 17:51:54 by 0

Use pthread_yield_np() on OS X. Added checks for sys/ioctl.h to fix missing
prototype. Added checks for various Mach kernel headers which improve
thread performance on OS X.

Rev: src/configure.in:1.748

1: - AC_REVISION("$Id: configure.in,v 1.747 2003/11/19 17:10:05 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.748 2003/11/25 17:51:54 jonasw Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2407:    sys/priocntl.h sys/sched.h windows.h errno.h \    stddef.h mmx.h asm/mmx.h sys/termio.h sys/termios.h \    ws2tcpip.h valgrind/memcheck.h memcheck.h valgrind.h \ -  sys/prctl.h) +  sys/prctl.h sys/ioctl.h mach/task_info.h mach/task.h \ +  mach/mach_init.h)      # some Linux systems have a broken resource.h that compiles anyway /Mirar   AC_MSG_CHECKING([for sys/resource.h])
2961:      ##########################################################################    +  AC_MSG_CHECKING(for pthread_yield_np) +  AC_CACHE_VAL(pike_cv_have_pthread_yield_np,[ +  AC_TRY_LINK([#include <pthread.h> +  void foo(void) { pthread_yield_np(); } +  ],[],[ +  pike_cv_have_pthread_yield_np=yes +  ],[ +  pike_cv_have_pthread_yield_np=no +  ]) +  ]) +  AC_MSG_RESULT($pike_cv_have_pthread_yield_np) +  if test x$pike_cv_have_pthread_yield_np = xyes ; then +  AC_DEFINE(HAVE_PTHREAD_YIELD_NP) +  else +  : +  fi +  + ########################################################################## +     AC_MSG_CHECKING(for pthread_cond_init)    AC_CACHE_VAL(pike_cv_have_pthread_cond_init,[    AC_TRY_LINK([#include <pthread.h>