From 5e49019eec8648698b7b03f5472e7f690db88274 Mon Sep 17 00:00:00 2001 From: Lars Andersson Date: Tue, 2 Apr 2019 17:37:30 +1100 Subject: [PATCH] Release GIL in pipeline::wait_for_frames() --- wrappers/python/python.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/python/python.cpp b/wrappers/python/python.cpp index f68e2bfad8..55e2ecda20 100644 --- a/wrappers/python/python.cpp +++ b/wrappers/python/python.cpp @@ -838,7 +838,7 @@ PYBIND11_MODULE(NAME, m) { .def("start", (rs2::pipeline_profile(rs2::pipeline::*)(const rs2::config&)) &rs2::pipeline::start, "config") .def("start", (rs2::pipeline_profile(rs2::pipeline::*)()) &rs2::pipeline::start) .def("stop", &rs2::pipeline::stop) - .def("wait_for_frames", &rs2::pipeline::wait_for_frames, "timeout_ms"_a = 5000) + .def("wait_for_frames", &rs2::pipeline::wait_for_frames, "timeout_ms"_a = 5000, py::call_guard()) .def("poll_for_frames", [](const rs2::pipeline &self) { rs2::frameset frames;