Skip to content

Commit

Permalink
Merge pull request #3666 from landersson/master
Browse files Browse the repository at this point in the history
Release GIL in pipeline::wait_for_frames()
  • Loading branch information
ev-mp authored Apr 4, 2019
2 parents dc980e3 + 5e49019 commit a94d966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/python/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<py::gil_scoped_release>())
.def("poll_for_frames", [](const rs2::pipeline &self)
{
rs2::frameset frames;
Expand Down

0 comments on commit a94d966

Please sign in to comment.