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

pyuno::PyThreadDetach::PyThreadDetach ( const PyThreadDetach )
privatedelete
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 982 of file pyuno_runtime.cxx.

References tstate.

pyuno::PyThreadDetach::~PyThreadDetach ( )

Acquires the global interpreter lock again.

Definition at line 992 of file pyuno_runtime.cxx.

References tstate.

Member Function Documentation

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

Member Data Documentation

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: