-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deadlock in child threads launched from python
Pybind11 seems to have an issue in gil_scoped_acquire when being called from child threads created from python. This resulted in a deadlock here: https://github.com/searchivarius/nmslib/issues/291 A simple workaround is to use the PyGILState_Ensure from the python c-api directly instead.
- Loading branch information
Ben Frederickson
committed
Feb 16, 2018
1 parent
d3cc089
commit 6e3f91d
Showing
1 changed file
with
17 additions
and
3 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