|
LibreOffice Module pyuno (master) 1
|
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 | |
| PyThreadDetach & | operator= (const PyThreadDetach &)=delete |
Private Attributes | |
| PyThreadState * | tstate |
helper class for detaching the current thread from the python runtime to do some blocking, non-python related operation.
|
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.
| css::uno::RuntimeException |
Definition at line 986 of file pyuno_runtime.cxx.
References tstate.
| pyuno::PyThreadDetach::~PyThreadDetach | ( | ) |
Acquires the global interpreter lock again.
Definition at line 996 of file pyuno_runtime.cxx.
References tstate.
|
privatedelete |
|
private |
Definition at line 301 of file pyuno.hxx.
Referenced by PyThreadDetach(), and ~PyThreadDetach().