#ifndef COMMIT_SLAB_DECL_H #define COMMIT_SLAB_DECL_H /* allocate ~512kB at once, allowing for malloc overhead */ #ifndef COMMIT_SLAB_SIZE #define COMMIT_SLAB_SIZE … #endif #define declare_commit_slab(slabname, elemtype) … /* * Statically initialize a commit slab named "var". Note that this * evaluates "stride" multiple times! Example: * * struct indegree indegrees = COMMIT_SLAB_INIT(1, indegrees); * */ #define COMMIT_SLAB_INIT(stride, var) … #define declare_commit_slab_prototypes(slabname, elemtype) … #define define_shared_commit_slab(slabname, elemtype) … #endif /* COMMIT_SLAB_DECL_H */