Files
salmanoff/smocore/include/componentThread.h
T
hayodea ab399cafeb Improve CONFIG_WORLD_USE_BODY_THREAD handling
We no longer need to do ugly ifdefs in the constructor for
Mind::Mind because we preprocess the handling for BODY and WORLD
in SmoThreadIds.
2026-02-18 02:05:44 -04:00

32 lines
596 B
C++

#ifndef SMO_COMPONENT_THREAD_H
#define SMO_COMPONENT_THREAD_H
#include <config.h>
#include <string>
// Include the spinscale componentThread.h which provides ComponentThread, PuppetThread, etc.
#include <spinscale/componentThread.h>
namespace smo {
/* Application-specific thread ID enum
* Using regular enum (not enum class) to allow implicit conversion to ThreadId
*/
enum SmoThreadId : sscl::ThreadId
{
MRNTT = 0,
DIRECTOR,
SIMULATOR,
SUBCONSCIOUS,
BODY,
WORLD
#ifdef CONFIG_WORLD_USE_BODY_THREAD
= BODY
#endif
,
N_ITEMS
};
} // namespace smo
#endif // SMO_COMPONENT_THREAD_H