diff options
Diffstat (limited to 'src/camera')
| -rw-r--r-- | src/camera/veyeimx287m.cpp | 3 | ||||
| -rw-r--r-- | src/camera/veyeimx287m.h | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/camera/veyeimx287m.cpp b/src/camera/veyeimx287m.cpp index 21d95c6..2e4a4aa 100644 --- a/src/camera/veyeimx287m.cpp +++ b/src/camera/veyeimx287m.cpp @@ -618,6 +618,9 @@ void VeyeIMX287m::calcFrameLoop(std::stop_token stopToken) continue; } + // ++processedCounter; + // continue; + std::lock_guard lock{m_imageMutexes[bufferIdx]}; auto &image = m_images[bufferIdx]; diff --git a/src/camera/veyeimx287m.h b/src/camera/veyeimx287m.h index 4de51af..03b7df9 100644 --- a/src/camera/veyeimx287m.h +++ b/src/camera/veyeimx287m.h @@ -5,6 +5,8 @@ #include <queue> #include <thread> +#include <QReadWriteLock> + #include "constants.h" #include "image.h" @@ -79,6 +81,12 @@ private: static constexpr uint8_t BUFFER_COUNT{16}; + struct MA + { + QReadWriteLock rwLock; + Image image; + } bbbbb[BUFFER_COUNT]; + std::array<Image, BUFFER_COUNT> m_images; /*! * \brief m_imageMutexes - lock while processing image from m_images |
