Skip to content
Tcl Source Code History Of Ticket 674514ffffffffff
Login

History Of Ticket 674514ffffffffff

Artifacts Associated With Ticket 674514ffffffffff

  1. Ticket change [e5e0461ded] (rid 104200) by elfring on 2003-01-25 09:30:41:

    1. assignee initialized to: "vasiljevic"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Do you know which functions of the Tcl Standard Library can be used 
      safely (no extra synchronization needed) with Tcl threads?
      When 
      will the information be added to the documentation 
      (http://tcllib.sourceforge.net/doc/index.html)whether a function in 
      this application programming interface is thread-safe or 
      asynchronous-safe or not?
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "elfring"
    9. subsystem initialized to: "80. Thread Package"
    10. title initialized to: "Is Tcllib thread safe?"
    11. type initialized to: "RFE"
  2. Ticket change [50c34aa3a6] (rid 126030) by vasiljevic on 2003-01-25 16:48:16:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      Generally speaking, all Tcl code should be thread-safe. 
      It is the C-code which makes (might make) problems. 
      Also very important to note is the Tcl "cd" command, which 
      although thread-safe per-se, changes the process current 
      directory for every thread in the process and is, thus, source 
      of potential problems.  
       
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  3. Ticket change [475261cc32] (rid 99680) by hobbs on 2003-01-26 03:23:21:

    1. closedate changed to: "2003-01-25T20:23:21"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      All pure Tcl code is thread-safe due to the nature of the core.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"
  4. Ticket change [7a20c43f1b] (rid 90250) by elfring on 2003-01-26 20:29:15:

    1. icomment:
      Logged In: YES 
      user_id=572001
      
      1. Is the library "Tcllib" written in "pure Tcl code"?
      
      2. Please add your 
      answers to the documentation.
         I would like to see there a general 
      statement about reentrant, thread-safe and asynchronous-safe 
      functions.
      - http://www.gnu.org/software/pth/pth-manual.html#the 
      world of threading
      - 
      http://www.tru64unix.compaq.com/docs/base_doc/DOCUMENTATION/V51_HTML/ARH9RBTE/DOCU0008.HTM#nonthreaded
      
      
    2. login: "elfring"
    3. mimetype: "text/plain"
    4. resolution changed to: "Later"
    5. status changed to: "Open"
    6. username: "elfring"
  5. Ticket change [6908973787] (rid 103173) by elfring on 2003-01-27 19:44:43:

    1. icomment:
      Logged In: YES 
      user_id=572001
      
      1. Is there a source file that might be not thread-safe and not 
      asynchronous-safe because it was written in a programming 
      language like C oder C++?
      
      3. Are the source files that are not written in TCL checked with 
      tools like the following?
      - http://splint.org/
      - http://www.garret.ru/~knizhnik/jlint/ReadMe.htm#introduction
      - http://www.cs.utexas.edu/users/emery/#broadway
      
      
      
    2. login: "elfring"
    3. mimetype: "text/plain"
    4. title changed to:
      Is Tcllib thread safe? - code analysis, flaw detection
      
    5. username: "elfring"
  6. Ticket change [743d7e3365] (rid 105173) by vasiljevic on 2003-01-27 21:20:41:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      I do not understand... 
       
      The thread-extension itself is thread-safe. 
      All Tcl code is already thread-safe because of the  
      thread-safe Tcl core. 
      Arbitrary exensions loaded into the Tcl shell are out 
      of the scope of my work. Normally, the package author 
      should make his/her code thread-safe if you want to use 
      his/her code in the MT-enabled Tcl shell.  
       
      I normally run the Purify checker on all of my C-code. 
      I do not exercise the code wth any other MT-tool. 
      I never had any need for that, yet :-) 
       
       
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  7. Ticket change [84655928a7] (rid 117549) by dkf on 2003-01-27 22:19:58:

    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"
  8. Ticket change [a8dd1e5e08] (rid 99062) by elfring on 2003-01-28 00:18:27:

    1. closedate changed to: "2003-01-27T17:18:27"
    2. closer changed to: "elfring"
    3. icomment:
      Logged In: YES 
      user_id=572001
      
      Thank you for your answers.
      It was that kind of information that I was looking for.
      
      I hope that all Tcllib users know about these thread-safety issues 
      with Tcl code.
      
      
    4. login: "elfring"
    5. mimetype: "text/plain"
    6. priority changed to: "1 Zero"
    7. username: "elfring"
  9. Ticket change [3254760a0c] (rid 93596) by elfring on 2003-01-29 21:05:09:

    1. closedate changed to: "2003-01-29T14:05:09"
    2. closer changed to: "elfring"
    3. icomment:
      Logged In: YES 
      user_id=572001
      
      Thank you for your answers.
      It was that kind of information that I was looking for.
      
      I hope that all Tcllib users know about these thread-safety issues 
      with Tcl code.
      
      
    4. login: "elfring"
    5. mimetype: "text/plain"
    6. username: "elfring"