Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [1577f1d373] various fundamental problems with recursive mutexes and furt... artifact: 2556aa59dc user: serhiy.storchaka
2026-10-21
10:53 • Ticket [1577f1d373]: 3 changes artifact: f83d92ce4e user: serhiy.storchaka
10:51
Fix [3328635fff]: Use CLOCK_MONOTONIC for timed condition waits on Unix where pthread_condattr_setcl... leaf check-in: bc65a512d2 user: serhiy.storchaka tags: unix-monotonic-condwait
09:58 • Closed ticket [1577f1d373]: various fundamental problems with recursive mutexes ... artifact: 6b0562c78c user: serhiy.storchaka
2025-08-18
15:22 • Ticket [1577f1d373]: 3 changes artifact: 81b70fa715 user: apnadkarni
2025-08-13
21:57 • Ticket [1577f1d373]: 3 changes artifact: dc0e7cf588 user: chw
21:57 • Ticket [1577f1d373]: 3 changes artifact: b7394c8591 user: chw
21:50 • New ticket [1577f1d373]. artifact: 47fcfdae68 user: chw

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.