Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
handle (badly) the timeout exception in wait_for()
[simgrid.git] / include / simgrid / exec.h
1 /* Copyright (c) 2018-2020. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef INCLUDE_SIMGRID_EXEC_H_
7 #define INCLUDE_SIMGRID_EXEC_H_
8
9 #include <simgrid/forward.h>
10 #include <xbt/dynar.h>
11
12 /* C interface */
13 SG_BEGIN_DECL
14
15 XBT_PUBLIC void sg_exec_set_bound(sg_exec_t exec, double bound);
16 XBT_PUBLIC double sg_exec_get_remaining(const_sg_exec_t exec);
17
18 XBT_PUBLIC void sg_exec_start(sg_exec_t exec);
19 XBT_PUBLIC void sg_exec_wait(sg_exec_t exec);
20 XBT_PUBLIC void sg_exec_wait_for(sg_exec_t exec, double timeout);
21
22 SG_END_DECL
23
24 #endif /* INCLUDE_SIMGRID_EXEC_H_ */