Skip to content
Tcl Source Code Check-in [6fa1088680]
Login

Check-in [6fa1088680]

Overview
Comment: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, [
Timelines: family | ancestors | descendants | both | tip-302
Files: files | file ages | folders
SHA1: 6fa1088680e167bc3c24328d08f8df47f00bad0c
User & Date: oehhar on 2016-03-30 20:03:21.156
Other Links: branch diff | manifest | tags
Context
2016-03-31
07:11
Added patch for win/configure.in into win/configure.ac leaf check-in: f59a6453b1 user: oehhar tags: tip-302
2016-03-30
20:03
The following patch against a stock tcl 8.6.5 source tree tries to implement most of TIP #302 for U... check-in: 6fa1088680 user: oehhar tags: tip-302
2016-03-29
10:17
Eliminate AT_FORK_INIT_VALUE/RESET_ATFORK_MUTEX macro's, since other values than the default are not... check-in: 255b94edcb user: jan.nijtmans tags: trunk
Changes