This commit is contained in:
milek7
2019-02-25 00:41:11 +01:00
parent 939aa73384
commit 064b360a53
13 changed files with 137 additions and 31 deletions

View File

@@ -39,16 +39,16 @@ node_groups::close()
if (typeid(TMemCell) == typeid(*node) && string_ends_with(node->name(), postfix)) {
std::string sem_name = node->name().substr(0, node->name().length() - postfix.length());
map::Semaphores.emplace_back();
map::semaphore &sem_info = map::Semaphores.back();
map::Semaphores.push_back(std::make_shared<map::semaphore>());
auto sem_info = map::Semaphores.back();
sem_info.location = node->location();
sem_info.name = sem_name;
sem_info->location = node->location();
sem_info->name = sem_name;
for (basic_event *event : m_groupmap[m_activegroup.top()].events) {
if (string_starts_with(event->name(), sem_name)
&& event->name().substr(sem_name.length()).find("sem") == std::string::npos) {
sem_info.events.push_back(event);
sem_info->events.push_back(event);
}
}
}