Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 687729eb5f7c7ad5907a5525e6e86c34dba8f74c
Ticket: 3611974fffffffffffffffffffffffffffffffff
InitSubsystems multiple thread issue
User & Date: dgp on 2013-06-18 15:26:31
Changes

  1. icomment:
    It's fine to have only one thread carry out
    the finalization (I think, modulo the difficulty
    that multi-threaded finalization is still suffering
    from many flaws, AIUI).
    
    However the second thread that's leaping past finalization
    then lands on making a call to TclFinalizeLock().  That
    seems at least confusing and dangerous, if not outright wrong.
    
    Hmmmm... I see that the TclpInitLock() in Tcl_Finalize()
    lacks a balancing TclpInitUnlock() as well.
    
    It may be of little practical consequence, but I can follow
    the code on the bug-3611974 branch with far greater ease and
    confidence than what's currently in place.  Unless I've really
    botched it without realizing it, I'd rather move to that.
    
  2. login: "dgp"
  3. mimetype: "text/plain"