diff --git a/modules/gapi/include/opencv2/gapi/infer/workload_type.hpp b/modules/gapi/include/opencv2/gapi/infer/workload_type.hpp index 76482451f7..9f5c5bb512 100644 --- a/modules/gapi/include/opencv2/gapi/infer/workload_type.hpp +++ b/modules/gapi/include/opencv2/gapi/infer/workload_type.hpp @@ -30,6 +30,7 @@ public: return id == other.id; } }; + class WorkloadType { std::vector listeners; uint64_t nextId = 1; @@ -48,7 +49,7 @@ public: } } - void notify(const std::string &type) { + void set(const std::string &type) { for (const auto &listener : listeners) { listener(type); }