mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Merge pull request #28299 from AsyaPronina:rename_workload_type_notify
[G-API] Renamed `WorkloadType::notify()` -> `WorkloadType::set()`
This commit is contained in:
@@ -30,6 +30,7 @@ public:
|
|||||||
return id == other.id;
|
return id == other.id;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class WorkloadType {
|
class WorkloadType {
|
||||||
std::vector<WorkloadListener> listeners;
|
std::vector<WorkloadListener> listeners;
|
||||||
uint64_t nextId = 1;
|
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) {
|
for (const auto &listener : listeners) {
|
||||||
listener(type);
|
listener(type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user