diff --git a/src/componentThread.cpp b/src/componentThread.cpp index e53163b..591c967 100644 --- a/src/componentThread.cpp +++ b/src/componentThread.cpp @@ -14,27 +14,25 @@ namespace sscl { namespace mrntt { -// Global variable to store the marionette thread ID -// Default value is 0, but should be set by application code via setMarionetteThreadId() +/* Global variable to store the marionette thread ID + * Default value is 0, but should be set by application code via + * setMarionetteThreadId(). + */ ThreadId marionetteThreadId = 0; +/* Global marionette thread instance - defined here but initialized by + * application code. + */ +std::shared_ptr thread; void setMarionetteThreadId(ThreadId id) { marionetteThreadId = id; } + } // namespace mrntt -} // namespace sscl - -namespace sscl { - thread_local std::shared_ptr thisComponentThread; -namespace mrntt { -// Global marionette thread instance - defined here but initialized by application -std::shared_ptr thread; -} // namespace mrntt - // Implementation of static method std::shared_ptr ComponentThread::getMrntt() {