Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b1e193718fb0c53fdb3031536a120418bbd515cb
Ticket: 731356ffffffffffffffffffffffffffffffffff
Win32 non-TLS thread storage patch...
User & Date: mistachkin on 2003-05-11 18:41:09
Changes

  1. icomment:
    Logged In: YES 
    user_id=113501
    
    I've made some progress on making this patch 
    for "generic".  However, I have a couple questions.  I 
    need a way to initialize/finalizing a mutex WITHOUT 
    having ckalloc/ckfree being called.  I still need 
    InitializeCriticalSection/DeleteCriticalSection (or their 
    Unix/Mac equivalents) to be called for the mutex.  The 
    threaded memory allocator currently uses 
    TclpNewAllocMutex (a very puzzling function) and then 
    never finalizes the mutex.  The TclpNewAllocMutex is 
    poorly documented and in the case of TCL_THREADS 
    without USE_THREAD_ALLOC, unavailable.  I feel there 
    should be new platform specific functions added to the 
    tcl{Unix|Win|Mac}Thrd.c files, such as 
    TclpInitMutex/TclpDeleteMutex.  For platforms that do 
    not require these steps, the functions can be empty.
    
    
    
  2. login: "mistachkin"
  3. mimetype: "text/plain"
  4. username: "mistachkin"