X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1ca34b76da924ef9743ce07316d18e69ba45374f..1c178c9855b20b64211ebea92eb9f783b875bbe1:/src/kernel/future.cpp diff --git a/src/kernel/future.cpp b/src/kernel/future.cpp new file mode 100644 index 0000000000..4252161b12 --- /dev/null +++ b/src/kernel/future.cpp @@ -0,0 +1,22 @@ +/* Copyright (c) 2016. 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. */ + +#include + +#include + +#include "src/simix/smx_private.h" + +namespace simgrid { +namespace kernel { + +void FutureStateBase::schedule(simgrid::xbt::Task&& job) +{ + simix_global->tasks.push_back(std::move(job)); +} + +} +}