Sparse Virtual File System  0.4.0
A Sparse Virtual File System.
Public Member Functions | Private Attributes | List of all members
AcquireLockSVF Class Reference

A RAII wrapper around the PyThread_type_lock for the CPython SVF. More...

Public Member Functions

 AcquireLockSVF (cp_SparseVirtualFile *pSVF)
 
 ~AcquireLockSVF ()
 

Private Attributes

cp_SparseVirtualFile_pSVF
 

Detailed Description

A RAII wrapper around the PyThread_type_lock for the CPython SVF.

See https://pythonextensionpatterns.readthedocs.io/en/latest/thread_safety.html

Definition at line 120 of file _cSVF.cpp.

Constructor & Destructor Documentation

◆ AcquireLockSVF()

AcquireLockSVF::AcquireLockSVF ( cp_SparseVirtualFile pSVF)
inlineexplicit

Acquire the lock on the Python cp_SparseVirtualFile

Parameters
pSVFThe Python cp_SparseVirtualFile.

Definition at line 127 of file _cSVF.cpp.

◆ ~AcquireLockSVF()

AcquireLockSVF::~AcquireLockSVF ( )
inline

Release the lock on the Python cp_SparseVirtualFile

Parameters
pSVFThe Python cp_SparseVirtualFile.

Definition at line 142 of file _cSVF.cpp.

Member Data Documentation

◆ _pSVF

cp_SparseVirtualFile* AcquireLockSVF::_pSVF
private

Definition at line 149 of file _cSVF.cpp.


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