Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T265 fix for race condition during pipeline stop.
This PR is effectively the suggested fix in the GH issue below. Thank you @ankyur. IntelRealSense#7276 I've validated the fix works using the following code: // Reproduces T265 Hand on Exit. int main(int, char**) { constexpr std::chrono::seconds timeout{ 1 }; while (true) { // Start rs2::config config; rs2::pipeline pipeline; std::cout << "Entering pipeline.start()" << std::endl; pipeline.start(); std::cout << "Exiting pipeline.start()" << std::endl; std::cout << "Sleeping for 1 second..." << std::endl; std::this_thread::sleep_for(timeout); std::cout << "Entering pipeline.stop()" << std::endl; pipeline.stop(); std::cout << "Exiting pipeline.stop()" << std::endl; } return 0; } Suspect this fix potentially addresses the following open T265 issues as well: IntelRealSense#7553 IntelRealSense#5807 IntelRealSense#6272 IntelRealSense#7555 IntelRealSense#7750
- Loading branch information