Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Boost contexts: inform ASan about context switches.
[simgrid.git] / src / kernel / future.cpp
1 /* Copyright (c) 2016. 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/simix/smx_private.h"
12
13 namespace simgrid {
14 namespace kernel {
15
16 void FutureStateBase::schedule(simgrid::xbt::Task<void()>&& job)
17 {
18   simix_global->tasks.push_back(std::move(job));
19 }
20
21 }
22 }