diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-05-29 09:32:35 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-05-29 10:16:16 -0700 |
commit | cfe4e1196bb63824a3e56b84f5485a7c6cf04490 (patch) | |
tree | b4945ad196a3e8091dd35f7bdacc039c7e2d5a23 /src/modules/rtv | |
parent | 72ef8c3d6dc48b108c81e2d4ff6176fff579db5c (diff) |
til: introduce til_module_context_t
Preparatory commit for embedding a til type in the module
contexts, similar to til_setup_t for the module setups.
This will provide a convenient way to embed seed and n_cpus in
every module context, without having to implement that yourself.
But it also makes it so modules with no need for a context can
continue not implementing those methods, without obstructing
libtil from transparently doing it anyways with a bare
til_module_context_t.
This is kind of important as the current architecture made it
difficult to do things like create contexts with explicit n_cpus,
like in composite/meta modules which are already threaded and
wish to run embedded modules with n_cpus=1.
With this addition, n_cpus could be specified at context create
time, and it will always become remembered in the
til_module_context_t regardless of what the module implements.
That way it can definitely be carried into the prepare/render
methods, with no opportunity for disconnect between what was
passed to context create and what goes to the render methods.
Nothing is functionally changed in this commit alone, subsequent
commits will actually make use of it and realize what I've said
above.
Diffstat (limited to 'src/modules/rtv')
0 files changed, 0 insertions, 0 deletions