-/* Copyright (c) 2013-2014. The SimGrid Team.
+/* Copyright (c) 2013-2015. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
void Link::linksExit() {
for (auto kv : *links)
delete (kv.second);
+ delete links;
}
/*************
* Callbacks *
: Resource(model, name, props)
, p_latEvent(NULL)
{
- surf_callback_emit(networkLinkCreatedCallbacks, this);
links->insert({name, this});
XBT_DEBUG("Create link '%s'",name);
: Resource(model, name, props, constraint),
p_latEvent(NULL)
{
- surf_callback_emit(networkLinkCreatedCallbacks, this);
if (state_trace)
p_stateEvent = tmgr_history_add_trace(history, state_trace, 0.0, 0, this);