RTEMS
|
Basic parallel job description. More...
#include <test-info.h>
Public Attributes | |
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.
Definition at line 158 of file test-info.h.
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. |
Definition at line 189 of file test-info.h.
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).
Definition at line 225 of file test-info.h.
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. |
Definition at line 207 of file test-info.h.
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. |
Definition at line 173 of file test-info.h.