From patchwork Mon Oct 28 10:49:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2281 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2F03161513 for ; Mon, 28 Oct 2019 11:49:27 +0100 (CET) Received: from pendragon.ideasonboard.com (unknown [91.217.168.176]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D8E49325 for ; Mon, 28 Oct 2019 11:49:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1572259767; bh=LHtBu+7U4FTmS3INOykeGAs9ueXc5uRI7GPWy1Vdmcc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iRHrjAMgAkxxFf4hrj1mjk6LldGFQgchxR0BIDTt5kl24itArYc9M+3uK0Z9nqROq N9yORpG4XAg/uNVCEE8mVCTXnOaacQOIh52j44GqnhUFKKtncsWO9xuOxV4MFrxZ9z Mqmxta3AXXRsscGcP8jiFackmFeenFXaBdrl/67g= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Mon, 28 Oct 2019 12:49:12 +0200 Message-Id: <20191028104913.14985-9-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191028104913.14985-1-laurent.pinchart@ideasonboard.com> References: <20191028104913.14985-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 8/9] test: object-invoke: Invoke method in blocking mode X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 10:49:28 -0000 From: Jacopo Mondi Change the object-invoke test to perform the second method invocation operation in blocking mode. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- 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 #include #include @@ -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: