Change type: PuppetComponent::thread to PuppetThread

This commit is contained in:
2026-02-18 02:03:19 -04:00
parent e813962168
commit 01a9c6ecc9
2 changed files with 15 additions and 2 deletions

View File

@@ -10,7 +10,20 @@
namespace sscl {
class ComponentThread;
class PuppetThread;
/** EXPLANATION:
* Components are API-exposing sub-components of an application. They are used
* aggregate the resources and API of some logically distinct sub-system into
* a single abstract entity. Basically, a component is a way to bind some APIs
* and resources to a particular thread. Ideally, all accesses to the resources
* of a component should be made through the component's APIs.
*
* Multiple components can share the same thread; and for this reason, each
* component must be supplied with a reference to the thread it shares.
* This amounts to saying that a single thread may expose and serve multiple
* APIs.
*/
class Component
{
public:
@@ -29,7 +42,7 @@ class PuppetComponent
public:
PuppetComponent(
PuppetApplication &parent,
const std::shared_ptr<ComponentThread> &thread);
const std::shared_ptr<PuppetThread> &thread);
~PuppetComponent() = default;
public:

View File

@@ -10,7 +10,7 @@ Component::Component(const std::shared_ptr<ComponentThread> &thread)
}
PuppetComponent::PuppetComponent(
PuppetApplication &parent, const std::shared_ptr<ComponentThread> &thread)
PuppetApplication &parent, const std::shared_ptr<PuppetThread> &thread)
: Component(thread),
parent(parent)
{