HAMR
The Heterogeneous Accelerator Memory Resource
hamr::gil_state Class Reference

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
 

Detailed Description

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.


The documentation for this class was generated from the following file: