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
In `pybind11`, GIL manipulation RAII guard types are not reentrant (at
least `gil_scoped_release` is not) which means we cannot reliably use it
in subfunctions without having previous knowledge of the GIL state.
This patch adds new re-entrant types which wrap `pybind11` own guards.
These new types also check at destruction if the interpreter is
finalizing, potentially (if `pybind11` supports it) disabling the guard,
thus avoiding a thread termination.
It also replaces any occurrences of previous guards with the new ones.
Change-Id: Ie9b134ce05df1787ae5c7b93eae7e750fb317123
Reviewed-on: http://gerrit2.aldebaran.lan/1792
Reviewed-by: jmonnon <jmonnon@aldebaran.com>
Reviewed-by: philippe.martin <philippe.martin@softbankrobotics.com>
Tested-by: vincent.palancher <vincent.palancher@softbankrobotics.com>
0 commit comments