Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0eef74a4758d87309117a745299cca75cc2dca0a64b26e3bae8bfaa3b2d0c696
Ticket: 893f8cc5db3ba8bd6bed80ce89a0a75c6088a37c
Nested mutexes following TIP 509
User & Date: apnadkarni on 2025-09-26 11:34:20
Changes

  1. closedate changed to: "2460944.98218285"
  2. closer changed to: "apnadkarni"
  3. icomment:
    > Both effects are a timing issue...
    
    I think you misunderstood what I was trying to say. Talking about the **general** case, not just this situation where it does not matter (as I already pointed out), when an action is taken that is dependent on a value, both the value comparison and the action must be under the same lock. It is not a question of which thread wins. That is always true. It is a question of consistency. It is the reason why the double checked locking checks for the value **again** after obtaining the lock and does not rely on the preceding check.
    
  4. login: "apnadkarni"
  5. mimetype: "text/plain"