Lines Matching refs:StateChangedSubject
197 class StateChangedSubject { class
206 static std::unordered_map<Handle, StateChangedSubject*> state_subject_map_;
208 StateChangedSubject(const ::perfetto::protos::TraceConfig& trace_config, in StateChangedSubject() function in iorap::perfetto::StateChangedSubject
420 std::lock_guard<std::mutex> guard(StateChangedSubject::state_subject_mutex_); in CallbackOnStateChanged()
421 auto it = StateChangedSubject::state_subject_map_.find(handle); in CallbackOnStateChanged()
423 if (it == StateChangedSubject::state_subject_map_.end()) { in CallbackOnStateChanged()
427 StateChangedSubject* state_subject = it->second; in CallbackOnStateChanged()
431 StateChangedSubject::state_subject_map_.erase(it); in CallbackOnStateChanged()
464 std::mutex StateChangedSubject::state_subject_mutex_;
466 StateChangedSubject*> StateChangedSubject::state_subject_map_;
479 std::unique_ptr<StateChangedSubject> state_subject{ in CreatePerfettoStateStream()
480 new StateChangedSubject{perfetto_config, subscriber, perfetto_consumer}}; in CreatePerfettoStateStream()
490 &StateChangedSubject::CallbackOnStateChanged, in CreatePerfettoStateStream()
506 std::lock_guard<std::mutex> guard(StateChangedSubject::state_subject_mutex_); in CreatePerfettoStateStream()
507 StateChangedSubject::state_subject_map_[handle] = state_subject.get(); in CreatePerfettoStateStream()