RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Data Fields
rtems_test_parallel_job Struct Reference

Basic parallel job description. More...

#include <test-info.h>

Data Fields

rtems_interval(* init )(rtems_test_parallel_context *ctx, void *arg, size_t active_workers)
 Job initialization handler.
 
void(* body )(rtems_test_parallel_context *ctx, void *arg, size_t active_workers, size_t worker_index)
 Job body handler.
 
void(* fini )(rtems_test_parallel_context *ctx, void *arg, size_t active_workers)
 Job finalization handler.
 
void * arg
 Job specific argument.
 
bool cascade
 Job cascading flag.
 

Detailed Description

Basic parallel job description.

Field Documentation

◆ body

void(* rtems_test_parallel_job::body) (rtems_test_parallel_context *ctx, void *arg, size_t active_workers, size_t worker_index)

Job body handler.

Parameters
[in]ctxThe parallel context.
[in]argThe user specified argument.
[in]active_workersCount of active workers. Depends on the cascade option.
[in]worker_indexThe worker index. It ranges from 0 to the processor count minus one.

◆ cascade

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).

◆ fini

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.

Parameters
[in]ctxThe parallel context.
[in]argThe user specified argument.
[in]active_workersCount of active workers. Depends on the cascade option.

◆ init

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.

Parameters
[in]ctxThe parallel context.
[in]argThe user specified argument.
[in]active_workersCount of active workers. Depends on the cascade option.
Returns
The desired job body execution time in clock ticks. See rtems_test_parallel_stop_job().

The documentation for this struct was generated from the following file: