RTEMS
Public Attributes | List of all members
rtems_test_parallel_job Struct Reference

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

Detailed Description

Basic parallel job description.

Definition at line 158 of file test-info.h.

Member Data 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.

Definition at line 189 of file test-info.h.

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

Definition at line 225 of file test-info.h.

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

Definition at line 207 of file test-info.h.

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

Definition at line 173 of file test-info.h.


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