Fetches the next call from the communication management and executes it.

Note: This method is only available in polling mode and aborts the process when called in event mode.

Note: ProcessNextMethodCall()
will block until the returned future
from the skeleton method callback is ready (value or error set to promise
). Therefore, if the application is single-threaded, the method callback must ensure to return a future
which is ready. A multi-threaded application may also use another thread to set the future
to ready.
Syntax
ara::core::Future<bool> customnamespace::ExampleServiceInterfaceSkeleton::ProcessNextMethodCall()
Returns
Future
(boolean
)
TRUE
if there is a method request pending in the global request queue, which is being processed.FALSE
if there was no method request pending.
The promise
's value is set as soon as the request has been processed.
Precondition
- Service must be offered before calling this API.
- This function must not be called on a skeleton that uses a processing mode other than
kPoll
.
Thread-safety, Reentrance, Result Delivery
- Threadsafe : FALSE for same class instance, TRUE for different instances
- Reentrant : FALSE for same class instance, TRUE for different instances
- Synchronous : TRUE