You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since per-thread interpreters do not share objects, is it true that the thread package must be avoided when invoking TSP compiled procs?
If it is true, could you elaborate on that a bit, like when can someone use threads except when invoking compiled procs?
I think I see you are caching objects so that would crash Tcl if one thread interpreter used a cached object created by another one. Perhaps in a threaded environment only one Tcl interpreter can use a particular tsp proc?
The text was updated successfully, but these errors were encountered:
At the bottom of https://github.com/tpoindex/tsp/blob/master/docs/runtime.md, this section reads "TSP compiled procs are not thread safe, so use of Tcl thread package must be avoided when invoking TSP compiled procs."
Since per-thread interpreters do not share objects, is it true that the thread package must be avoided when invoking TSP compiled procs?
If it is true, could you elaborate on that a bit, like when can someone use threads except when invoking compiled procs?
I think I see you are caching objects so that would crash Tcl if one thread interpreter used a cached object created by another one. Perhaps in a threaded environment only one Tcl interpreter can use a particular tsp proc?
The text was updated successfully, but these errors were encountered: