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:
Hirokazu Honda
2021-12-01 13:46:36 +02:00
committed by Laurent Pinchart
parent 59002a9e9d
commit 923cf7f40a
6 changed files with 12 additions and 10 deletions
+1 -2
View File
@@ -7,7 +7,6 @@
#include <libcamera/camera_manager.h>
#include <condition_variable>
#include <map>
#include <libcamera/camera.h>
@@ -63,7 +62,7 @@ private:
void createPipelineHandlers();
void cleanup();
std::condition_variable cv_;
ConditionVariable cv_;
bool initialized_;
int status_;