-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent deadlock when deallocating Python objects in threads (GH-255)
Previously, the deallocation would try to acquire the runtime lock and wait indefinitely because it's held by another thread that runs the Lua code. Failing to acquire the lock will now move the Lua reference to a "to be freed later" list that gets processed before returning from Lua back to Python. Closes #250
- Loading branch information
Showing
2 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters