<i>Virtual Time broken on threaded unix</i> status still Open with 7 other changes
by
.
D 2014-10-09T14:33:10.403
J assignee aku
J closer nobody
J comment In\sthreaded\sunix\sbuilds,\stimer\sevents\suse\spthread_cond_timedwait,\swhich\sneeds\san\sabsolute\starget\stime.\sThe\scomputation\sof\sthis\starget\sis\sbroken,\sbecause\sit\sadds\sthe\s(correct)\sscaled==real\sdelta\sto\sthe\s(incorrect)\svirtual\sTcl_GetTime.\sThe\sfix\sis\sto\suse\sreal\stime\sfor\sthe\slatter.\r\n\r\nMoreover,\sin\ssome\sunices,\sthe\sclock\sused\sfor\spthread_cond_timedwait\scan\sbe\sselected\samong\sseveral,\swith\spthread_condattr_setclock\sat\scondvar\screation\stime.\sOne\sof\sthem,\sCLOCK_MONOTONIC,\shas\sthe\sextra\sadvantage\sof\sbeing\sinsensitive\sto\ssystem\sclock\stweaks.\sI\sthink\sthat\sselecting\sit\swhen\spossible\scan\sonly\simprove\sthings,\ssince\sit\sallows:\r\n\r\n\s\s\s\s\s-\susual,\stip-302-sensitive\s[after]\ssemantics\sunchanged,\ssince\sthe\stimer\sevents\sare\salso\sstored\sas\sabsolute\sepoch-time\s\stargets\sby\sTcl\r\n\s\s\s\s\s-\sfully\sworking\sVirtual\sTime\swith\sclock_gettime(CLOCK_MONOTONIC)\sgiving\stip-302-insensitive\s[after].\r\n\r\nI\shave\sa\sprovisional\spatch\sfor\splatforms\swith\sclock_gettime+CLOCK_MONOTONIC,\sdesigned\sto\senable\sJoe\sKeen's\scode\sin\shttp://groups.google.com/group/comp.lang.tcl/browse_frm/thread/8f820c68143850f9#\s.\sSome\sautogoo\swould\sbe\sdue\sbefore\scommitting.\r\n\r\nAn\salternative\sto\s'select\smonotonic\sif\spossible,\sepoch\sif\snot'\swould\sbe\sa\sruntime\ssetting,\slike\sa\s::tcl::unsupported::monotonicTime\slinked\svar.\sTo\sbe\sdiscussed.
J icomment status?
J login dgp
J mimetype text/plain
J severity Minor
K 3328635fffffffffffffffffffffffffffffffff
U dgp
Z 3adc8fa05f498d3615247f2ca58d5a44