/* Function to call in leader process on completion of a worker task */ typedefvoid (*ParallelCompletionPtr) (ArchiveHandle *AH,
TocEntry *te, int status, void *callback_data);
/* ParallelSlot is an opaque struct known only within parallel.c */ typedefstruct ParallelSlot ParallelSlot;
/* Overall state for parallel.c */ typedefstruct ParallelState
{ int numWorkers; /* allowed number of workers */ /* these arrays have numWorkers entries, one per worker: */
TocEntry **te; /* item being worked on, or NULL */
ParallelSlot *parallelSlot; /* private info about each worker */
} ParallelState;