.. include:: 2026-11-09 (3): C++ (``enum`` Variations), Multithreading (And Lambda), Project Talk ==================================================================================== C++: ``enum class`` ... ----------------------- * :doc:`/trainings/material/soup/cxx/cxx11/strongly-typed-enums/topic` C++: Multithreading: How Threads Are Started -------------------------------------------- .. topic:: See also * :doc:`/trainings/material/soup/cxx/cxx11/multithreading/010-introduction/topic` * :doc:`/trainings/material/soup/cxx/cxx11/multithreading/020-thread/topic` Parallel FSM Loops: ``void func(void)``, And Global Variables ............................................................. Continuing with code from :ref:`fh-2026-11-03-mt` * ``plc_loop()``: PLC, polling inputs in 1ms loop, and converting what has been found to FSM events * ``cmdline_loop()``: injecting FSM events directly from commandline .. literalinclude:: code/parallel-loops.cpp :caption: :download:`code/parallel-loops.cpp` :language: c++ Passing Thread-Function Parameters .................................. * Global variables are bad (why?) * |longrightarrow| pass parameters .. literalinclude:: code/thread-func-params.cpp :caption: :download:`code/thread-func-params.cpp` :language: c++