1 /* Copyright (c) 2016-2019. The SimGrid Team.
2 * All rights reserved. */
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. */
7 #include <xbt/functional.hpp>
9 #include <simgrid/kernel/future.hpp>
11 #include "src/simix/smx_private.hpp"
16 void FutureStateBase::schedule(simgrid::xbt::Task<void()>&& job)
18 simix_global->tasks.push_back(std::move(job));