SimGrid  3.9
Versatile Simulation of Distributed Systems
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
s_xbt_parmap Struct Reference

Parallel map structure. More...

Data Fields

e_xbt_parmap_flag_t status
unsigned work
unsigned thread_counter
unsigned int num_workers
void_f_pvoid_t fun
xbt_dynar_t data
unsigned int index
e_xbt_parmap_mode_t mode
void(* master_wait_f )(xbt_parmap_t)
void(* worker_signal_f )(xbt_parmap_t)
void(* master_signal_f )(xbt_parmap_t)
void(* worker_wait_f )(xbt_parmap_t, unsigned)

Detailed Description

Parallel map structure.

Field Documentation

e_xbt_parmap_flag_t s_xbt_parmap::status

is the parmap active or being destroyed?

unsigned s_xbt_parmap::work

index of the current round

unsigned s_xbt_parmap::thread_counter

number of workers that have done the work

unsigned int s_xbt_parmap::num_workers

total number of worker threads including the controller

void_f_pvoid_t s_xbt_parmap::fun

function to run in parallel on each element of data

xbt_dynar_t s_xbt_parmap::data

parameters to pass to fun in parallel

unsigned int s_xbt_parmap::index

index of the next element of data to pick

e_xbt_parmap_mode_t s_xbt_parmap::mode

synchronization mode

void(* s_xbt_parmap::master_wait_f)(xbt_parmap_t)

wait for the workers to have done the work

void(* s_xbt_parmap::worker_signal_f)(xbt_parmap_t)

signal the master that a worker has done the work

void(* s_xbt_parmap::master_signal_f)(xbt_parmap_t)

wakes the workers threads to process tasks

void(* s_xbt_parmap::worker_wait_f)(xbt_parmap_t, unsigned)

waits for more work


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