2 Commits

Author SHA1 Message Date
Adrien Boulanger
fc63e2906b U201-012: Ensure frame state when calling python function.
Most of the commands can only be called if we have the GIL:
retrieve it.
Add a controlled type to automatically retrieve/free the GIL.
Lock every call using Py_INCREF/Py_DECREF.

Change-Id: I8989fcb3eacf6aedbb90056469536144a2795a3f
2021-02-25 11:17:13 +01:00
Nicolas Roche
9c61fb6fe9 Move declaration of PyGILState_* functions to GNATCOLL.Python.State
Part of S821-014

Change-Id: I3f43a40c59942f50ae29d286be858a7739922c74
2020-05-28 11:04:12 +02:00