diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-05-11 11:10:48 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-05-11 15:19:25 -0700 |
commit | dede4eca3e2fca76f297b5f5b901434cb99eafb0 (patch) | |
tree | 7cdf8634a41af9003d2408ccf143fcaf40b2b729 /src/modules/swarm | |
parent | 7c8086020fb8d88f662a2b33b2dabef1b62ab39c (diff) |
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.
Diffstat (limited to 'src/modules/swarm')
-rw-r--r-- | src/modules/swarm/swarm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/swarm/swarm.c b/src/modules/swarm/swarm.c index 8883197..d7f1614 100644 --- a/src/modules/swarm/swarm.c +++ b/src/modules/swarm/swarm.c @@ -181,7 +181,7 @@ static til_module_context_t * swarm_create_context(const til_module_t *module, t { swarm_context_t *ctxt; - ctxt = til_module_context_new(module, sizeof(swarm_context_t) + sizeof(*(ctxt->boids)) * SWARM_SIZE, stream, seed, ticks, n_cpus, path); + ctxt = til_module_context_new(module, sizeof(swarm_context_t) + sizeof(*(ctxt->boids)) * SWARM_SIZE, stream, seed, ticks, n_cpus, path, setup); if (!ctxt) return NULL; |