diff options
| author | dgp <dgp@users.sourceforge.net> | 2017-04-11 14:14:05 (GMT) |
|---|---|---|
| committer | dgp <dgp@users.sourceforge.net> | 2017-04-11 14:14:05 (GMT) |
| commit | bc2940927e48190e91f3dd7a90274411eecbccc9 (patch) | |
| tree | 72af08cb803c98359747f491a103cb4282b777d3 /generic/tclTimer.c | |
| parent | 5c21b9c7c7e7f6442ed8b09ce672495f60df5e87 (diff) | |
| parent | 26f98a5e562b865e82adcc6b7de05df4b0fa07de (diff) | |
| download | tcl-bc2940927e48190e91f3dd7a90274411eecbccc9.zip tcl-bc2940927e48190e91f3dd7a90274411eecbccc9.tar.gz tcl-bc2940927e48190e91f3dd7a90274411eecbccc9.tar.bz2 | |
merge trunk
Diffstat (limited to 'generic/tclTimer.c')
| -rw-r--r-- | generic/tclTimer.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/generic/tclTimer.c b/generic/tclTimer.c index edab8da..ef7a095 100644 --- a/generic/tclTimer.c +++ b/generic/tclTimer.c @@ -1047,11 +1047,17 @@ AfterDelay( if (diff > TCL_TIME_MAXIMUM_SLICE) { diff = TCL_TIME_MAXIMUM_SLICE; } - if (diff == 0 && TCL_TIME_BEFORE(now, endTime)) diff = 1; + if (diff == 0 && TCL_TIME_BEFORE(now, endTime)) { + diff = 1; + } if (diff > 0) { Tcl_Sleep((long) diff); - if (diff < SLEEP_OFFLOAD_GETTIMEOFDAY) break; - } else break; + if (diff < SLEEP_OFFLOAD_GETTIMEOFDAY) { + break; + } + } else { + break; + } } else { diff = TCL_TIME_DIFF_MS(iPtr->limit.time, now); #ifndef TCL_WIDE_INT_IS_LONG |
