Alexandria 2.32.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Pyston::GILLocker Class Reference

#include <GIL.h>

Public Member Functions

 GILLocker ()
 ~GILLocker ()

Static Public Member Functions

static size_t getLockCount ()

Protected Attributes

PyGILState_STATE m_state

Friends

class GILReleaser

Detailed Description

RAII for the Global Interlock: Acquires at construction and releases at destruction

Definition at line 29 of file GIL.h.

Constructor & Destructor Documentation

◆ GILLocker()

Pyston::GILLocker::GILLocker ( )

Definition at line 25 of file GIL.cpp.

References m_state, and Pyston::s_lock_count.

◆ ~GILLocker()

Pyston::GILLocker::~GILLocker ( )

Definition at line 32 of file GIL.cpp.

References m_state.

Member Function Documentation

◆ getLockCount()

size_t Pyston::GILLocker::getLockCount ( )
static

Definition at line 38 of file GIL.cpp.

References Pyston::s_lock_count.

◆ GILReleaser

friend class GILReleaser
friend

Definition at line 39 of file GIL.h.

References GILReleaser.

Referenced by GILReleaser.

Member Data Documentation

◆ m_state

PyGILState_STATE Pyston::GILLocker::m_state
protected

Definition at line 38 of file GIL.h.

Referenced by GILLocker(), and ~GILLocker().


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