Skip to main content

Module runtime

Module runtime 

Source
Available on non-target_os=unknown only.
Expand description

Threads running the tracks of programs.

Tracks, and continuous tasks of models, run on a pool of threads owned by the engine. It has one thread per core, unless the MELODIUM_THREADS environment variable gives another number. The pool starts with the first task, and lives as long as the process.

Constants§

THREADS_VARIABLE
Environment variable giving the number of threads running tracks.

Functions§

spawn
Runs future on the threads of the engine.
threads
Number of threads running tracks, from MELODIUM_THREADS or the number of cores.