public subroutine tem_open_distconf(L, fileName, proc)
Read a Lua file on the first process and distribute it to all.
Todo
HK: Maybe deprecate and remove this routine in favor of
TEM_open_distconf_array to avoid code duplication? Or keep it around and
put a generic interface in place?
This is a drop in replacement for open_config_file from Aotus and allows
the scalable processing of Lua files, as they are read by a single process
and then streamed to all in proc.
There should be no restrictions on the Lua scripts themselves in this
method, as it uses an overloading of the require mechanism in Lua itself to
replace the file searches by lookups of buffered Lua code snippets.
The execution of the Lua script itself is not changed.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.