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().
Cvb::V_1_1::Async::StreamHandlerGuard* streamGuard;
…
streamGuard = new Cvb::Async::StreamHandlerGuard(Cvb::Async::SingleStreamHandler::Create(device->Stream()), Cvb::AutoRun::Yes);
…
delete streamGuard;
Do you have any advices? Many thanks in advance.