Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill a deprecated function, deprecate another one, and inline a simcall
[simgrid.git] / src / s4u / s4u_async.cpp
1 /* Copyright (c) 2006-2015. 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/log.h"
8 #include "src/msg/msg_private.h"
9 #include "src/msg/msg_mailbox.h"
10
11 #include "simgrid/s4u/async.hpp"
12
13 XBT_LOG_EXTERNAL_CATEGORY(s4u);
14 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_async,s4u,"S4U asynchronous actions");
15 using namespace simgrid;
16
17 s4u::Async::Async() {
18
19 }
20 s4u::Async::~Async() {
21
22 }
23
24 void s4u::Async::setRemains(double remains) {
25         xbt_assert(p_state == inited, "Cannot change the remaining amount of work once the Async is started");
26         p_remains = remains;
27 }
28