Artifacts Associated With Ticket 674514ffffffffff
Ticket change [e5e0461ded] (rid 104200) by elfring on 2003-01-25 09:30:41:
- assignee initialized to: "vasiljevic"
- cmimetype initialized to: "text/plain"
- 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?
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "elfring"
- subsystem initialized to: "80. Thread Package"
- title initialized to: "Is Tcllib thread safe?"
- type initialized to: "RFE"
Ticket change [50c34aa3a6] (rid 126030) by vasiljevic on 2003-01-25 16:48:16:
- 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.
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"
- icomment:
Ticket change [475261cc32] (rid 99680) by hobbs on 2003-01-26 03:23:21:
- closedate changed to: "2003-01-25T20:23:21"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 All pure Tcl code is thread-safe due to the nature of the core.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "hobbs"
Ticket change [7a20c43f1b] (rid 90250) by elfring on 2003-01-26 20:29:15:
- 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
- login: "elfring"
- mimetype: "text/plain"
- resolution changed to: "Later"
- status changed to: "Open"
- username: "elfring"
- icomment:
Ticket change [6908973787] (rid 103173) by elfring on 2003-01-27 19:44:43:
- 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
- login: "elfring"
- mimetype: "text/plain"
- title changed to:
Is Tcllib thread safe? - code analysis, flaw detection
- username: "elfring"
- icomment:
Ticket change [743d7e3365] (rid 105173) by vasiljevic on 2003-01-27 21:20:41:
- 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 :-)
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"
- icomment:
Ticket change [84655928a7] (rid 117549) by dkf on 2003-01-27 22:19:58:
- closedate changed to: "2003-01-27T15:19:58"
- closer changed to: "dkf"
- 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.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "dkf"
Ticket change [a8dd1e5e08] (rid 99062) by elfring on 2003-01-28 00:18:27:
- closedate changed to: "2003-01-27T17:18:27"
- closer changed to: "elfring"
- 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.
- login: "elfring"
- mimetype: "text/plain"
- priority changed to: "1 Zero"
- username: "elfring"
Ticket change [3254760a0c] (rid 93596) by elfring on 2003-01-29 21:05:09:
- closedate changed to: "2003-01-29T14:05:09"
- closer changed to: "elfring"
- 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.
- login: "elfring"
- mimetype: "text/plain"
- username: "elfring"