mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-26 18:15:06 +03:00
libcamera: base: Introduce ConditionVariable
ConditionVariable is alias to std::condition_variable. This replaces std::condition_variable with the ConditionVariable. It enables replacing ConditionVariable implementation easily in the following patches. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
59002a9e9d
commit
923cf7f40a
6 changed files with 12 additions and 10 deletions
|
@ -7,7 +7,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <condition_variable>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <queue>
|
||||
|
@ -154,7 +153,7 @@ private:
|
|||
PostProcessor *postProcessor_;
|
||||
|
||||
libcamera::Mutex mutex_;
|
||||
std::condition_variable cv_;
|
||||
libcamera::ConditionVariable cv_;
|
||||
|
||||
std::queue<Camera3RequestDescriptor::StreamBuffer *> requests_;
|
||||
State state_ = State::Stopped;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue