moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
RAII Helper to release the Global Interpreter Lock (GIL) More...
#include <gil_releaser.h>
Public Member Functions | |
GILReleaser () noexcept | |
Release the GIL on construction More... | |
~GILReleaser () noexcept | |
Reacquire the GIL on destruction More... | |
GILReleaser (const GILReleaser &)=delete | |
GILReleaser (GILReleaser &&other) noexcept | |
GILReleaser & | operator= (const GILReleaser &)=delete |
GILReleaser & | operator= (GILReleaser &&other) noexcept |
void | swap (GILReleaser &other) noexcept |
RAII Helper to release the Global Interpreter Lock (GIL)
Use this helper class to release the GIL before doing long computations or blocking calls. Note that without the GIL Python-related functions must not be called. So, before releasing the GIL all boost::python
variables have to be converted to e.g. std::vector<std::string>
. Before converting the result back to e.g. a moveit::py_bindings_tools::ByteString instance, the GIL has to be reacquired.
Definition at line 54 of file gil_releaser.h.
|
inlinenoexcept |
Release the GIL on construction
Definition at line 60 of file gil_releaser.h.
|
inlinenoexcept |
Reacquire the GIL on destruction
Definition at line 65 of file gil_releaser.h.
|
delete |
|
inlinenoexcept |
Definition at line 75 of file gil_releaser.h.
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |