Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please clarify the doc section "Threading unsupported" #4

Open
lehenbauer opened this issue Jul 29, 2015 · 0 comments
Open

please clarify the doc section "Threading unsupported" #4

lehenbauer opened this issue Jul 29, 2015 · 0 comments

Comments

@lehenbauer
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant