Asynchronous Executor

Asynchronous Executor

Class

inc/kernel/commonr/r3async.h

Description

Asynchronous executor object. Spawns a separate thread object for calling the given method. All time consuming tasks should be executed via async. executor, rather than by running them directly with the main thread.

Examples:

To make asynchronous call to object 'myobj' with MYM_FOO method:

    R3OBJ *async;

    R3Do3(async, R3ASYNCM_DOMSGA3, myobj, (void *)MYM_FOO, 
          R3T(R3RA_P1, myp1param),
          R3T(R3RA_P2, myp2param),
          R3T(R3RA_P3, myp3param),
          R3TAG_END);