Replaced boost::shared_ptr with std::shared_ptr
[pulseview.git] / pv / storesession.cpp
index ebb4b0ed374349e657fff6e14373c244afa23310..f60cd26cc621ec9225e16ef57ed37ad2113e80d9 100644 (file)
 #include <pv/data/logicsnapshot.h>
 #include <pv/view/signal.h>
 
-using boost::dynamic_pointer_cast;
 using boost::mutex;
-using boost::shared_ptr;
 using boost::thread;
 using boost::lock_guard;
 using std::deque;
+using std::dynamic_pointer_cast;
 using std::make_pair;
 using std::min;
 using std::pair;
 using std::set;
+using std::shared_ptr;
 using std::string;
 using std::vector;
 
@@ -135,7 +135,8 @@ bool StoreSession::start()
 
 void StoreSession::wait()
 {
-       _thread.join();
+       if (_thread.joinable())
+               _thread.join();
 }
 
 void StoreSession::cancel()