static ConditionVariablePtr create();
+#ifndef DOXYGEN
/** @deprecated See Comm::get_mailbox() */
XBT_ATTRIB_DEPRECATED_v323("Please use Comm::get_mailbox()") ConditionVariablePtr createConditionVariable()
{
return create();
}
+#endif
// Wait functions without time:
static s4u::Engine* instance_;
//////////////// Deprecated functions
+#ifndef DOXYGEN
public:
/** @deprecated See Engine::load_platform() */
XBT_ATTRIB_DEPRECATED_v323("Please use Engine::load_platform()") void loadPlatform(std::string platf)
}
/** @deprecated See Engine::set_config() */
XBT_ATTRIB_DEPRECATED_v323("Please use Engine::set_config()") void setConfig(std::string str) { set_config(str); }
+#endif
};
/** Callback fired when the platform is created (ie, the xml file parsed),
/** Callback fired when the time cannot advance because of inter-actors deadlock */
extern XBT_PUBLIC xbt::signal<void(void)> on_deadlock;
+#ifndef DOXYGEN /* Internal use only, no need to expose it */
template <class T> XBT_PRIVATE void get_filtered_netzones_recursive(s4u::NetZone* current, std::vector<T*>* whereto)
{
static_assert(std::is_base_of<kernel::routing::NetZoneImpl, T>::value,
whereto->push_back(dynamic_cast<T*>(elem->get_impl()));
}
}
+#endif
}
} // namespace simgrid::s4u
{
return get_pstate_speed(pstate_index);
}
-#endif
std::vector<const char*> get_attached_storages() const;
XBT_ATTRIB_DEPRECATED_v323("Please use Host::get_attached_storages() instead.") void getAttachedStorages(
std::vector<const char*>* storages);
+#endif
/** Get an associative list [mount point]->[Storage] of all local mount points.
*
* This is defined in the platform file, and cannot be modified programatically (yet).
*/
std::unordered_map<std::string, Storage*> const& get_mounted_storages();
+#ifndef DOXYGEN
/** @deprecated See Host::get_mounted_storages() */
XBT_ATTRIB_DEPRECATED_v323("Please use Host::get_mounted_storages() instead.") std::unordered_map<std::string, Storage*> const& getMountedStorages()
{
return get_mounted_storages();
}
+#endif
void route_to(Host* dest, std::vector<Link*>& links, double* latency);
void route_to(Host* dest, std::vector<kernel::resource::LinkImpl*>& links, double* latency);
friend void intrusive_ptr_add_ref(Mailbox*) {}
/** private function to manage the mailboxes' lifetime (see @ref s4u_raii) */
friend void intrusive_ptr_release(Mailbox*) {}
+
public:
/** private function, do not use. FIXME: make me protected */
kernel::activity::MailboxImpl* get_impl() { return pimpl_; }
void* get(double timeout);
// Deprecated functions
+#ifndef DOXYGEN
/** @deprecated Mailbox::set_receiver() */
XBT_ATTRIB_DEPRECATED_v323("Please use Mailbox::set_receiver()") void setReceiver(ActorPtr actor)
{
{
return by_name(name);
}
+#endif
};
}} // namespace simgrid::s4u
void unlock();
bool try_lock();
+#ifndef DOXYGEN
// deprecated
/** @deprecated Mutex::create() */
XBT_ATTRIB_DEPRECATED_v323("Please use Mutex::create()") static MutexPtr createMutex() { return create(); }
+#endif
};
}} // namespace simgrid::s4u
static simgrid::xbt::signal<void(NetZone&)> on_creation;
static simgrid::xbt::signal<void(NetZone&)> on_seal;
+#ifndef DOXYGEN
// Deprecation wrappers
/** @deprecated NetZone::get_father() */
XBT_ATTRIB_DEPRECATED_v323("Please use NetZone::get_father()") NetZone* getFather() { return get_father(); }
res->push_back(child);
return res;
}
+#endif
};
}
}; // Namespace simgrid::s4u
surf::StorageImpl* get_impl() { return pimpl_; }
// Deprecated functions
+#ifndef DOXYGEN
/** @deprecated Storage::by_name() */
XBT_ATTRIB_DEPRECATED_v323("Please use Storage::by_name()") Storage* byName(std::string name)
{
XBT_ATTRIB_DEPRECATED_v323("Please use Storage::set_data()") void setUserdata(void* data) { set_data(data); }
/** @deprecated Storage::get_data() */
XBT_ATTRIB_DEPRECATED_v323("Please use Storage::get_data()") void* getUserdata() { return get_data(); }
+#endif
private:
Host* attached_to_ = nullptr;
static simgrid::xbt::signal<void(VirtualMachine&)> on_migration_start;
static simgrid::xbt::signal<void(VirtualMachine&)> on_migration_end;
+#ifndef DOXYGEN
// Deprecated methods
/** @deprecated See VirtualMachine::get_state() */
XBT_ATTRIB_DEPRECATED_v323("Please use VirtualMachine::get_state()") VirtualMachine::state getState()
}
/** @deprecated See VirtualMachine::set_bound() */
XBT_ATTRIB_DEPRECATED_v323("Please use VirtualMachine::set_bound()") void setBound(double bound) { set_bound(bound); }
+#endif
};
}
} // namespace simgrid::s4u