speedtables icon indicating copy to clipboard operation
speedtables copied to clipboard

speedtable thread safety

Open apnadkarni opened this issue 12 years ago • 2 comments

Not sure if this is a bug or a known limitation. The generated code is not thread safe. I understand that with Tcl's thread/interp model, a speedtable cannot be accessed from multiple threads. However, because of the use of static caches (e.g. for allocation of rows), it is not safe to even access different speedtables from different threads.

Docs don't talk about this much

/Ashok

apnadkarni avatar Nov 03 '12 14:11 apnadkarni

It is a known limitation, but we will accept git pull requests that contribute thread-safety fixes.

bovine avatar Nov 03 '12 17:11 bovine

It probably makes sense to do this as one of the goals of the new cpp branch. Some of my work there was to begin looking at how the static global speedtablesAssocData was being used, though I didn't make any major changes to it yet.

bovine avatar Nov 03 '12 18:11 bovine