Artifact ad3041d34499792987690103b80208fcef5bbc95:
- Executable file unix/configure — part of check-in [6fa1088680] at 2016-03-30 20:03:21 on branch tip-302 — The following patch against a stock tcl 8.6.5 source tree tries to implement most of TIP #302 for UN*X and WIN32/64: * use clock_gettime(CLOCK_MONOTONIC) for relative timing (UN*X) when available (tested at runtime) * use PTHREAD_CONDATTR_SETCLOCK et.al. for pthread_cond (UN*X) when available (tested at runtime) * use GetTickCount64() for relative timing (WIN64) * use GetTickCount() for relative timing (WIN32 for WINNT<6.0) * configure (UN*X) detects availabilty of clock_gettime() and pthread_condattr_setclock() plus adds optional -lrt to LIBS * configure (WIN32) adds command line option --with-tickcount to turn on GetTickCount*() usage Trade-off: implementation eliminates virtualized time, unfortunately. Best regards, Christian Werner --- missing merge --- diff -ur tcl8.6.5-orig/win/configure.in tcl8.6.5/win/configure.in --- tcl8.6.5-orig/win/configure.in 2016-02-29 20:13:09.000000000 +0100 +++ tcl8.6.5/win/configure.in 2016-03-25 06:47:47.712516747 +0100 @@ -142,6 +142,15 @@ ]) AC_DEFINE(HAVE_ZLIB, 1, [Is there an installed zlib?]) +AC_ARG_WITH(tickcount, + AC_HELP_STRING([--with-tickcount], + [use GetTickCount for timers, turns off interp time limits]), + [tcl_ok=$withval], [tcl_ok=no]) +AC_MSG_RESULT([$tcl_ok]) +if test $tcl_ok = yes; then + AC_DEFINE(WIN32_USE_TICKCOUNT, 1, [Use GetTickCount for timers?]) +fi + AC_CHECK_TYPE([intptr_t], [ AC_DEFINE([HAVE_INTPTR_T], 1, [Do we have the intptr_t type?])], [ AC_CACHE_CHECK([for pointer-size signed integer type], tcl_cv_intptr_t, [ (user: oehhar size: 316116) [more...]
A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.