Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use GilScopedAcquire to create a new Python thread state when an actor is started.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 22 Jan 2020 20:54:30 +0000 (21:54 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 24 Jan 2020 21:00:20 +0000 (22:00 +0100)
commit344d3bd0bd43b939ebbaa10ac2db75acdaffff3d
tree28a17a40b5c61a55937af9812b698d319e8d432c
parentc2f0bb2b65071b31616d95ef449dca3ccb22bd08
Use GilScopedAcquire to create a new Python thread state when an actor is started.

The call to py_context.reset() is here to avoid deadlocks seen later with
SwappedContexts.

py::error_already_set::~error_already_set() uses py::gil_scoped_acquire which
does not play well with our GilScopedAcquire.
src/bindings/python/simgrid_python.cpp