[libcamera-devel] [PATCH v2 8/9] test: object-invoke: Invoke method in blocking mode
Niklas Söderlund
niklas.soderlund at ragnatech.se
Wed Oct 30 00:30:27 CET 2019
Hi Jacopo,
Thanks for your work.
On 2019-10-28 12:49:12 +0200, Laurent Pinchart wrote:
> 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>
Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
> ---
> 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
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
--
Regards,
Niklas Söderlund
More information about the libcamera-devel
mailing list