RTEMS
5.1
|
Basic parallel job description. More...
#include <test.h>
Data Fields | |
rtems_interval(* | init )(rtems_test_parallel_context *ctx, void *arg, size_t active_workers) |
Job initialization handler. More... | |
void(* | body )(rtems_test_parallel_context *ctx, void *arg, size_t active_workers, size_t worker_index) |
Job body handler. More... | |
void(* | fini )(rtems_test_parallel_context *ctx, void *arg, size_t active_workers) |
Job finalization handler. More... | |
void * | arg |
Job specific argument. | |
bool | cascade |
Job cascading flag. More... | |
Basic parallel job description.
void(* rtems_test_parallel_job::body) (rtems_test_parallel_context *ctx, void *arg, size_t active_workers, size_t worker_index) |
Job body handler.
[in] | ctx | The parallel context. |
[in] | arg | The user specified argument. |
[in] | active_workers | Count of active workers. Depends on the cascade option. |
[in] | worker_index | The worker index. It ranges from 0 to the processor count minus one. |
bool rtems_test_parallel_job::cascade |
Job cascading flag.
This flag indicates whether the job should be executed in a cascaded manner (the job is executed on one processor first, two processors afterwards and incremented step by step until all processors are used).
void(* rtems_test_parallel_job::fini) (rtems_test_parallel_context *ctx, void *arg, size_t active_workers) |
Job finalization handler.
This handler executes only in the context of the master worker after the job body handler.
[in] | ctx | The parallel context. |
[in] | arg | The user specified argument. |
[in] | active_workers | Count of active workers. Depends on the cascade option. |
rtems_interval(* rtems_test_parallel_job::init) (rtems_test_parallel_context *ctx, void *arg, size_t active_workers) |
Job initialization handler.
This handler executes only in the context of the master worker before the job body handler.
[in] | ctx | The parallel context. |
[in] | arg | The user specified argument. |
[in] | active_workers | Count of active workers. Depends on the cascade option. |