test: object-invoke: Invoke method in blocking mode
Change the object-invoke test to perform the second method invocation operation in blocking mode. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
fb1a5c0416
commit
1f1d27cc14
1 changed files with 1 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue