[libcamera-devel] [PATCH v2 8/9] test: object-invoke: Invoke method in blocking mode
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Mon Oct 28 11:49:12 CET 2019
From: Jacopo Mondi <jacopo at jmondi.org>
Change the object-invoke test to perform the second method invocation
operation in blocking mode.
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
test/object-invoke.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/test/object-invoke.cpp b/test/object-invoke.cpp
index f6ae2604db76..6582fa75ae11 100644
--- a/test/object-invoke.cpp
+++ b/test/object-invoke.cpp
@@ -5,7 +5,6 @@
* object-invoke.cpp - Cross-thread Object method invocation test
*/
-#include <chrono>
#include <iostream>
#include <thread>
@@ -103,8 +102,7 @@ protected:
thread_.start();
object.invokeMethod(&InvokedObject::method,
- ConnectionTypeAuto, 42);
- this_thread::sleep_for(chrono::milliseconds(100));
+ ConnectionTypeBlocking, 42);
switch (object.status()) {
case InvokedObject::NoCall:
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list