Public Member Functions | Private Attributes | List of all members
gil_scoped_release Class Reference

#include <gil.h>

Public Member Functions

PYBIND11_NOINLINE void disarm ()
 
 gil_scoped_release (bool disassoc=false)
 
 gil_scoped_release (const gil_scoped_release &)=delete
 
gil_scoped_releaseoperator= (const gil_scoped_release &)=delete
 
 ~gil_scoped_release ()
 

Private Attributes

bool active = true
 
bool disassoc
 
PyThreadState * tstate
 

Detailed Description

Definition at line 138 of file gil.h.

Constructor & Destructor Documentation

◆ gil_scoped_release() [1/2]

gil_scoped_release::gil_scoped_release ( bool  disassoc = false)
inlineexplicit

Definition at line 141 of file gil.h.

◆ gil_scoped_release() [2/2]

gil_scoped_release::gil_scoped_release ( const gil_scoped_release )
delete

◆ ~gil_scoped_release()

gil_scoped_release::~gil_scoped_release ( )
inline

Definition at line 167 of file gil.h.

Member Function Documentation

◆ disarm()

PYBIND11_NOINLINE void gil_scoped_release::disarm ( )
inline

This method will disable the PyThreadState_DeleteCurrent call and the GIL won't be acquired. This method should be used if the interpreter could be shutting down when this is called, as thread deletion is not allowed during shutdown. Check _Py_IsFinalizing() on Python 3.7+, and protect subsequent code.

Definition at line 165 of file gil.h.

◆ operator=()

gil_scoped_release& gil_scoped_release::operator= ( const gil_scoped_release )
delete

Member Data Documentation

◆ active

bool gil_scoped_release::active = true
private

Definition at line 186 of file gil.h.

◆ disassoc

bool gil_scoped_release::disassoc
private

Definition at line 185 of file gil.h.

◆ tstate

PyThreadState* gil_scoped_release::tstate
private

Definition at line 184 of file gil.h.


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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:10:01