NUGU SDK Linux  1.7.6
NuguRunner

Nugu Runner. More...

+ Collaboration diagram for NuguRunner:

Classes

class  NuguClientKit::NuguRunner
 NuguRunner. More...
 

Typedefs

typedef std::function< void()> NuguClientKit::NuguRunner::request_method
 The request method callback.
 

Enumerations

enum class  NuguClientKit::ExecuteType { Auto , Queued , Blocking }
 ExecuteType. More...
 

Functions

bool NuguClientKit::NuguRunner::invokeMethod (const std::string &tag, request_method method, ExecuteType type=ExecuteType::Auto, int timeout=0)
 Request to execute method on nugu loop. More...
 

Variables

struct NUGU_API NuguClientKit::NuguRunnerPrivate
 

Detailed Description

Nugu Runner.

NuguRunner is a class that provides thread safety feature for using glib. The nugu loop is based on GMainLoop provided by glib.

Enumeration Type Documentation

◆ ExecuteType

ExecuteType.

Enumerator
Auto 

The method is executed synchronized if caller is on nugu loop, otherwise it is executed asynchronously

Queued 

The method is executed on next idle time even if caller is on nugu loop

Blocking 

The caller is blocking until the method is executed done

Function Documentation

◆ invokeMethod()

bool NuguClientKit::NuguRunner::invokeMethod ( const std::string &  tag,
request_method  method,
ExecuteType  type = ExecuteType::Auto,
int  timeout = 0 
)

Request to execute method on nugu loop.

Parameters
[in]tagtag name for debug output
[in]methodrequest method
[in]typeexecute method type
[in]timeoutThe invoked method is released blocking state when timeout. (unit: sec)
See also
ExecuteType