various fundamental problems with recursive mutexes and further consequences
Closed / Duplicate1577f1d373411bdca7c71290ab02a54d524ecb96Created 1 year agoUpdated 42 days ago
Descriptionplain2025-08-13 21:50:08
please follow the thread on the [mailing list](https://sourceforge.net/p/tcl/mailman/message/59220338/) alternatively see discussion on [2025-08-13](https://sourceforge.net/p/tcl/mailman/tcl-core/)
Referenced by1
bc65a512d2Fix [3328635fff]: Use CLOCK_MONOTONIC for timed condition waits on Unix where pthread_condattr_setclock() is available, so changes of the system time do not affect timeouts. Also use the monotonic clock in TclUnixWaitForFile(). See also [1577f1d373]. check-in2026-10-21 10:51:18
chwplain2025-08-13 21:57:12
Let me politely express my impressions: TIP#509 although positively voted, was a mistake.
chw Ticket [1577f1d373]: 3 changes
[History diff]2025-08-13 21:57:46
apnadkarni Ticket [1577f1d373]: 3 changes
[History diff]2025-08-18 15:22:06
serhiy.storchakawiki2026-10-21 09:58:25
The nested-mutex and condition-wait problems from this thread were handled in [893f8cc5db] and fixed in 9.0.3 ([cbb5b13ed1], [d27472f8b2], [fc66aa236c]). Closing as a duplicate. The realtime-clock issue of timed condition waits deserves a ticket of its own if wanted.
serhiy.storchakawiki2026-10-21 10:53:13
The remaining clock issue (timed waits on a wall-clock deadline) is tracked in [3328635fff]. Proposed fix in branch unix-monotonic-condwait.
serhiy.storchaka Ticket [1577f1d373]: 3 changes
[History diff]2026-10-22 17:19:32
Log in (anonymous is fine) to add a comment.