Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
provide a backtrace implementation that uses boost.stacktrace
[simgrid.git] / src / plugins / vm / VmHostExt.cpp
1 /* Copyright (c) 2013-2018. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include "src/plugins/vm/VmHostExt.hpp"
7
8 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_vm);
9
10 namespace simgrid {
11 namespace vm {
12 simgrid::xbt::Extension<s4u::Host, VmHostExt> VmHostExt::EXTENSION_ID;
13
14 void VmHostExt::ensureVmExtInstalled()
15 {
16   if (not EXTENSION_ID.valid())
17     EXTENSION_ID = simgrid::s4u::Host::extension_create<VmHostExt>();
18 }
19 }
20 }