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: |
6fa1088680e167bc3c24328d08f8df47 |
| 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
Modified generic/tclCmdMZ.c
from [65e0c2a1e9]
to [cb2234f550].
[diff]
Modified generic/tclInterp.c
from [199534bdb8]
to [7c2bf9ec2d].
[diff]
Modified generic/tclTimer.c
from [789ea0b236]
to [a6cc07ea3b].
[diff]
Modified unix/configure
from [dbd1b9440b]
to [ad3041d344].
[diff]
Modified unix/tcl.m4
from [fc1f1e4734]
to [c624c5639d].
[diff]
Modified unix/tclConfig.h.in
from [f9ac9c51ee]
to [82cf2f6a1f].
[diff]
Modified unix/tclUnixChan.c
from [74827246df]
to [46d643f15d].
[diff]
Modified unix/tclUnixEvent.c
from [6c9bc5adaf]
to [d627cab8bc].
[diff]
Modified unix/tclUnixNotfy.c
from [9bf71d6c35]
to [1af9b46d03].
[diff]
Modified unix/tclUnixPort.h
from [cd6f635073]
to [caa5d2b7eb].
[diff]
Modified unix/tclUnixThrd.c
from [23c5842371]
to [bd590f5b5d].
[diff]
Modified unix/tclUnixTime.c
from [ee0fac3efc]
to [43614d4cc9].
[diff]
Modified win/configure
from [0e977f3078]
to [c3d31bc157].
[diff]
Modified win/tclWinNotify.c
from [48dddee10e]
to [eec1ec6c6e].
[diff]
Modified win/tclWinTime.c
from [3f1a769a85]
to [2e8c34ae54].
[diff]