Re: Tcl Thread Safety / Windows build



He was partially right. Tcl 8.3 wasn't thread-safe; there were definite
bugs in there! :-) But 8.4 should be pretty good for Tcl and
thread-safety, and 8.5 will include a substantial effort to make Tk
thread-safe too.

On the other hand, it's possible from your description you're trying to
use a single Tcl interpreter (i.e. one Tcl_Interp instance) from
multiple threads. Don't do that; it violates *loads* of deep
assumptions. Send a message to the interpreter's thread instead; that's
supported.

Donal.

.



Relevant Pages

  • Tcl 8.4.13 Thread-safety
    ... A few months ago I asked if the Tcl 8.4 Dll was thread-safe and the ... I grabbed the 8.4.13 Dll and source, and went through all the various ... modules except the one that creates multiple interpreters and passes ...
    (comp.lang.tcl)
  • Re: Tcl Thread Safety / Windows build
    ... to confirm that the Tcl dll handles reentrancy from multiple ... simultaneous Tcl interpreters properly. ... company said that Tcl after 8.2 wasn't thread-safe and so we couldn't ...
    (comp.lang.tcl)
  • Re: Threads in TCL?
    ... Gerald W. Lester wrote: ... package for 8.4, but I don't remember how stable it was with 8.0. ... The first version of Tcl that was thread-safe in its released state ...
    (comp.lang.tcl)
  • Re: Bulletproofing Java
    ... >> multithreaded code, what might you do? ... functional programming language makes programming multiple cores ... I'm not sure that there really is an automatic way to make code thread-safe. ... There already is a tool out there to make it harder to create threading bugs called FindBugs. ...
    (comp.lang.java.advocacy)