HAL
hal::PythonMutex Class Reference

#include <python_thread.h>

Collaboration diagram for hal::PythonMutex:
Collaboration graph

Public Member Functions

 PythonMutex ()
 Aquire GIL. More...
 
 ~PythonMutex ()
 Release GIL. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PythonMutex()

hal::PythonMutex::PythonMutex ( )

Aquire GIL.

Definition at line 14 of file python_thread.cpp.

◆ ~PythonMutex()

hal::PythonMutex::~PythonMutex ( )

Release GIL.

Definition at line 19 of file python_thread.cpp.


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