My code seems to run into a deadlock when I try to destroy StreamHandlerGuard object. The deadlock happens when the destructor of StreamHandlerGuard calls the join method of std::thread in the function MultiStreamHandler::TryFinish().
streamGuard = new Cvb::Async::StreamHandlerGuard(Cvb::Async::SingleStreamHandler::Create(device->Stream()), Cvb::AutoRun::Yes);
Do you have any advices? Many thanks in advance.