Table of Contents

Name

qarray_elem - return a pointer to a distributed array element

Synopsis

#include <qthread/qarray.h>

void *
qarray_elem (const qarray * array, const size_t index);

void *
qarray_elem_nomigrate (const qarray * array, const size_t index);

void *
qarray_elem_migrate (const qarray * array, const size_t index);

Description

These functions return a pointer to the index element of the array distributed array. The qarray_elem_migrate() function will additionally migrate the calling thread to the shepherd of the specified element.

See Also

qarray_create(3) , qarray_destroy(3) , qarray_iter(3) , qarray_shepof(3)


Table of Contents