// A TaskObserver is an object that receives notifications about tasks being // processed on the thread it's associated with. // // NOTE: A TaskObserver implementation should be extremely fast!
class BASE_EXPORT TaskObserver { public: // This method is called before processing a task. // |was_blocked_or_low_priority| indicates if the task was at some point in a // queue that was blocked or less important than "normal". virtualvoid WillProcessTask(const PendingTask& pending_task, bool was_blocked_or_low_priority) = 0;
// This method is called after processing a task. virtualvoid DidProcessTask(const PendingTask& pending_task) = 0;
protected: virtual ~TaskObserver() = default;
};
} // namespace base
#endif// BASE_TASK_TASK_OBSERVER_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-08-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.