summaryrefslogtreecommitdiff
path: root/src/til_module_context.h
blob: 43d06a703da82fa4ce36a2ef2dc91a2949331bbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _TIL_MODULE_CONTEXT_H
#define _TIL_MODULE_CONTEXT_H

typedef struct til_module_context_t til_module_context_t;
typedef struct til_module_t til_module_t;

struct til_module_context_t {
	const til_module_t	*module;
	unsigned		seed;
	unsigned		ticks;
	unsigned		n_cpus;
};

void * til_module_context_new(size_t size, unsigned seed, unsigned ticks, unsigned n_cpus);
void * til_module_context_free(til_module_context_t *module_context);

#endif
© All Rights Reserved