LibreOffice Module pyuno (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pyuno::PyThreadDetach Class Reference

helper class for detaching the current thread from the python runtime to do some blocking, non-python related operation. More...

#include <pyuno.hxx>

Public Member Functions

 PyThreadDetach ()
 Releases the global interpreter lock. More...
 
 ~PyThreadDetach ()
 Acquires the global interpreter lock again. More...
 

Private Member Functions

 PyThreadDetach (const PyThreadDetach &)=delete
 
PyThreadDetachoperator= (const PyThreadDetach &)=delete
 

Private Attributes

PyThreadState * tstate
 

Detailed Description

helper class for detaching the current thread from the python runtime to do some blocking, non-python related operation.

See also
PyThreadAttach

Definition at line 299 of file pyuno.hxx.

Constructor & Destructor Documentation

◆ PyThreadDetach() [1/2]

pyuno::PyThreadDetach::PyThreadDetach ( const PyThreadDetach )
privatedelete

◆ PyThreadDetach() [2/2]

pyuno::PyThreadDetach::PyThreadDetach ( )

Releases the global interpreter lock.

precondition: The current thread MUST hold the global interpreter lock. postcondition: The current thread does not hold the global interpreter lock anymore.

Exceptions
css::uno::RuntimeException

Definition at line 986 of file pyuno_runtime.cxx.

References tstate.

◆ ~PyThreadDetach()

pyuno::PyThreadDetach::~PyThreadDetach ( )

Acquires the global interpreter lock again.

Definition at line 996 of file pyuno_runtime.cxx.

References tstate.

Member Function Documentation

◆ operator=()

PyThreadDetach & pyuno::PyThreadDetach::operator= ( const PyThreadDetach )
privatedelete

Member Data Documentation

◆ tstate

PyThreadState* pyuno::PyThreadDetach::tstate
private

Definition at line 301 of file pyuno.hxx.

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


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