Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cleanup in log categories
[simgrid.git] / src / kernel / future.cpp
1 /* Copyright (c) 2016-2022. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include <xbt/functional.hpp>
8
9 #include <simgrid/kernel/future.hpp>
10
11 #include "src/kernel/EngineImpl.hpp"
12
13 namespace simgrid {
14 namespace kernel {
15
16 void FutureStateBase::schedule(simgrid::xbt::Task<void()>&& job) const
17 {
18   EngineImpl::get_instance()->add_task(std::move(job));
19 }
20
21 } // namespace kernel
22 } // namespace simgrid