소스 검색

Fixed std::atomic_flag initialization.

jcsyshc 2 년 전
부모
커밋
9f76ae59e3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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));