Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
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.

Friends And Related Symbol Documentation

◆ GILReleaser

friend class GILReleaser
friend

Definition at line 39 of file GIL.h.

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: