blob: 1e78b93707c256a430c9a3f92188e9de03fb993c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef GENG_ITER_H
#define GENG_ITER_H
#include "gtools.h"
#include <ucontext.h>
#include <stdbool.h>
struct geng_iterator
{
ucontext_t geng_worker, geng_user;
char geng_stack[1 << 20];
int graph_size;
bool generation_done;
bool iteration_done;
int batch_size;
int batch_capacity;
set *batch;
};
void
outproc(FILE *, graph *, int n, struct geng_iterator *);
#endif // GENG_ITER_H
|