|
HAMR
The Heterogeneous Accelerator Memory Resource
|
A RAII helper for managing the Python GIL. More...
#include <hamr_gil_state.h>
Public Member Functions | |
| gil_state (const gil_state &)=delete | |
| void | operator= (const gil_state &)=delete |
A RAII helper for managing the Python GIL.
The GIL is aquired and held while the object exists. The GIL must be held by C++ code invoking any Python C-API calls.