diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-03 22:35:38 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-03 22:35:38 +0200 |
commit | 418d07a1e5a5173ed340180dd1cbcb185ee5ddfb (patch) | |
tree | fbb76d474f35eca1712659d7686cbffe1f7506d8 /video-ps3eye | |
parent | e88e7324a0b4e5e873068d0a5be2ac034acf3734 (diff) |
video/ps3eye: don't sleep too much
Diffstat (limited to 'video-ps3eye')
-rw-r--r-- | video-ps3eye/module.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp index 4279d68d..382c8ea7 100644 --- a/video-ps3eye/module.cpp +++ b/video-ps3eye/module.cpp @@ -137,7 +137,7 @@ void ps3eye_camera::stop() volatile auto& ptr = *(ps3eye::shm*)shm.ptr(); ptr.in.do_exit = 1; std::atomic_thread_fence(std::memory_order_seq_cst); - wrapper.waitForFinished(5000); + wrapper.waitForFinished(1000); if (wrapper.state() != QProcess::NotRunning) wrapper.kill(); @@ -181,7 +181,7 @@ bool ps3eye_camera::start(info& args) wrapper.start(); - constexpr int sleep_ms = 10, max_sleeps = 5000/sleep_ms; + constexpr int sleep_ms = 10, max_sleeps = 2000/sleep_ms; for (int i = 0; i < max_sleeps; i++) { |