From dede4eca3e2fca76f297b5f5b901434cb99eafb0 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 11 May 2023 11:10:48 -0700 Subject: til_module_context: reference setup from module context This just does the obvious pulling in of til_setup_t, holding the reference throughout the lifetime of the module context. --- src/til.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/til.c') diff --git a/src/til.c b/src/til.c index 729d447..e71b6a0 100644 --- a/src/til.c +++ b/src/til.c @@ -251,7 +251,7 @@ int til_module_create_context(const til_module_t *module, til_stream_t *stream, n_cpus = til_threads_num_threads(til_threads); if (!module->create_context) - context = til_module_context_new(module, sizeof(til_module_context_t), stream, seed, ticks, n_cpus, path); + context = til_module_context_new(module, sizeof(til_module_context_t), stream, seed, ticks, n_cpus, path, setup); else context = module->create_context(module, stream, seed, ticks, n_cpus, path, setup); -- cgit v1.2.1