Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 380c44182a886a099ac316450e1a4accd522e17776ff76a2e1bfb81ac506deb0
Ticket: 893f8cc5db3ba8bd6bed80ce89a0a75c6088a37c
Nested mutexes following TIP 509
User & Date: chw on 2025-08-24 06:40:17
Changes

  1. icomment:
    Thinking further I see two options:
    
    A) Fix Tcl_Mutex/Tcl_Condition in the true spirit of TIP#509 by using the
    emulated (not the native recursive) variant on POSIX with fixes around
    "wait on condition". Apply a similar strategy on Win32.
    
    B) Don't worry about recursive mutexes and be happy with the pre TIP509
    state of affairs.
    
    Option A) would give up on using PTHREAD_MUTEX_RECURSIVE for the benefit
    to have the Tcl_Mutex/Tcl_Condition combination working without implicit
    danger of deadlock. Which could as well be achieved for Win32.
    
  2. login: "chw"
  3. mimetype: "text/plain"