![]() |
HAL
|
#include <python_thread.h>
Public Member Functions | |
PythonMutex () | |
Aquire GIL. More... | |
~PythonMutex () | |
Release GIL. More... | |
Class to aquire and release GIL
It is important that the GIL is not released before Python code has removed all objects created during execution. Therefore the GIL release is done at the very end when running out of scope and calling the destructor
Definition at line 47 of file python_thread.h.
hal::PythonMutex::PythonMutex | ( | ) |
Aquire GIL.
Definition at line 14 of file python_thread.cpp.
hal::PythonMutex::~PythonMutex | ( | ) |
Release GIL.
Definition at line 19 of file python_thread.cpp.