This module defines a data type CPath, also known as an ``array descriptor''. Arrays are created by the function CPathMakeArray, and individual threads are created using CPathMakeThread:
void CPathMakeArray(CPath *path, int threadfn, int mapfn, ...)
This function initiates the creation of an array of threads. It
fills in the array descriptor *path. Each thread in the
array starts executing the function represented by threadfn.
The function mapfn represents a mapping function, controlling
the layout of the array. This parameter must be followed by the
dimensions of the array, and then a zero.
void CPathMakeThread(CPath *path, int startfn, int pe)
This function makes a zero-dimensional array of threads, in
other words, just one thread.
November 23, 2009
Charm Homepage