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
Not all python libraries tolerate multithreaded access well, even when serialized by a GIL. Some, for instance, use static/thread-local variables in a way as to make then unsafe to use from multiple threads.
We want to make purely single threaded access possible when necessary for robustness. It should be possible to load python and use it from an agent and guarantee all python access is from one thread.
One potential soution is a custom gc release-refcount queue that is cleared at the beginning or end of with-gil.
The text was updated successfully, but these errors were encountered:
Not all python libraries tolerate multithreaded access well, even when serialized by a GIL. Some, for instance, use static/thread-local variables in a way as to make then unsafe to use from multiple threads.
We want to make purely single threaded access possible when necessary for robustness. It should be possible to load python and use it from an agent and guarantee all python access is from one thread.
One potential soution is a custom gc release-refcount queue that is cleared at the beginning or end of with-gil.
The text was updated successfully, but these errors were encountered: