Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a37c1ae3ff22f55b0a77ce551c9656121b17828f
Ticket: 987967ffffffffffffffffffffffffffffffffff
CRITICAL_SECTION masterLock not initialized
User & Date: vasiljevic on 2004-07-11 19:34:41
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Whats wrong with 
    void Tcl_Initialize(void)  
    { 
        TclInitSubsystems(NULL); 
    } 
     
    This takes care about all subsystems in Tcl. After this call 
    everything including the object system, notifier thread, 
    encoding system etc etc are properly setup w/o need to 
    call Tcl_CreateInterp or Tcl_FindExecutable. This would 
    benefit the Tcl API better in terms of symetry. 
     
    Besides, there is nothing wrong with your proposal  
     
    > #define MASTER_LOCK EnterCriticalSection(&masterLock) 
    > #define MASTER_UNLOCK LeaveCriticalSection(&masterLock) 
    would become 
    < #define MASTER_LOCK TclpMasterLock() 
    < #define MASTER_UNLOCK TclpMasterUnlock() 
     
    This seems ok on the first glance. 
     
     
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"