struct State { // fields std::mutex mutex; T* object { nullptr }; Node* dispatcher { nullptr }; // construction State(T* object, Node* dispatcher); };