Ver Fonte

Fixed std::atomic_flag initialization.

jcsyshc há 2 anos atrás
pai
commit
9f76ae59e3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/stereo_camera.hpp

+ 1 - 1
src/stereo_camera.hpp

@@ -107,7 +107,7 @@ struct stereo_camera {
 private:
 
     std::thread *trigger_thread = nullptr;
-    std::atomic_flag should_stop = false;
+    std::atomic_flag should_stop;
 
     bool open_impl() {
         CALL_CHECK(left_camera.open(left_camera_name));