Overview
| Artifact ID: | 4c2fc9593014d7543a24c3446735496dc2beffef0c8d5d97e11cf5df5521c3c1 |
|---|---|
| Ticket: | 3328635fffffffffffffffffffffffffffffffff
Virtual Time broken on threaded unix |
| User & Date: | oehhar on 2025-05-10 20:25:19 |
Changes
- icomment:
It was me. I forgot the "vwait forever", as it is tclsh, not wish. But for the given test below, there is no difference between the bug branch and tcl9.0.1. The branch does not help and apparently, the after is not independent to the wall clock. Here is the output: <verbatim> % proc pt sec10 { puts "sec10=$sec10, clock=[expr {[clock seconds]-$::now}]" } % set now [clock seconds] 1746909277 % for {set sec 10} {$sec<=180} {incr sec 10} {after [expr {$sec*1000}] [list pt $sec]} % vwait forever sec10=10, clock=12 sec10=20, clock=22 sec10=30, clock=32 sec10=40, clock=42 sec10=50, clock=623 sec10=60, clock=623 sec10=70, clock=623 sec10=80, clock=623 sec10=90, clock=623 sec10=100, clock=623 sec10=110, clock=623 sec10=120, clock=623 sec10=130, clock=623 sec10=140, clock=623 sec10=150, clock=623 sec10=160, clock=623 sec10=170, clock=623 sec10=180, clock=623 </verbatim> As you can see, all after events fire together, when the wall clock is advanced. Do I miss something? Thanks for all, Harald - login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"