Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 84655928a708fc4941c5e7b60e246d7a2cc4700b
Ticket: 674514ffffffffffffffffffffffffffffffffff
Is Tcllib thread safe? - code analysis, flaw detection
User & Date: dkf on 2003-01-27 22:19:58
Changes

  1. closedate changed to: "2003-01-27T15:19:58"
  2. closer changed to: "dkf"
  3. icomment:
    Logged In: YES 
    user_id=79902
    
    Markus: Tcllib does not contain any non-Tcl source files, by
    explicit policy (though not for thread-safety but rather
    app-developer accessibility reasons.)  Consequently, they
    are guaranteed to be at least as thread-safe as the Tcl core
    itself.  However, there are some operations that are part of
    the core which are best not used from a multi-threaded
    context, though the only one I can think of right now is
    [cd] (because it affects a per-process resource.)  However,
    it is quite possible (and in-fact easy, especially with the
    right options to [glob] etc.) to write Tcl scripts that
    never rely on the current directory after a start-up period,
    and it is poor policy indeed to write a library which
    depends on the current directory!  Ultimately, it is best to
    keep the current directory as a user-concept, coupling each
    [cd] to a request to change the current directory by the
    user.
    
    Closing this FRQ since it is categorically satisfied to the
    extent that the Tcl project at SF is interested in it. 
    Further questions should be raised with the tcllib project
    itself, or in the tcl-threads mailing list.
    
    
  4. login: "dkf"
  5. mimetype: "text/plain"
  6. resolution changed to: "Accepted"
  7. status changed to: "Closed"
  8. username: "dkf"