-/* Copyright (c) 2015-2018. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2015-2019. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#else
process->privatized(false);
#endif
- modelChecker_ = std::unique_ptr<ModelChecker>(
- new simgrid::mc::ModelChecker(std::move(process)));
+ modelChecker_.reset(new simgrid::mc::ModelChecker(std::move(process)));
xbt_assert(mc_model_checker == nullptr);
mc_model_checker = modelChecker_.get();
mc_model_checker->start();
}
// static
-Session* Session::fork(std::function<void()> code)
+Session* Session::fork(const std::function<void()>& code)
{
// Create a AF_LOCAL socketpair used for exchanging messages
// between the model-checker process (ourselves) and the model-checked