HClib  0.3
Documentation for Habanero-C Library API
 All Data Structures Functions Typedefs Enumerations Groups
rt-accumulator.h
1 
2 #include "accumulator.h"
3 
4 // Accum base implementation for all type of accumulators
5  typedef struct accum_impl_t {
6  accum_t base;
7  // Close the accumulator, no more puts allowed, wrap-up any work left
8  void (*close)(struct accum_impl_t * accum);
9  // Transmit the accumulator to another context (finish, async etc..)
10  accum_t * (*transmit)(struct accum_impl_t * accum, void * params, int properties);
11  void (*destroy)(struct accum_impl_t * accum);
12  } accum_impl_t;