Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove unused include "simgrid_config.h"
[simgrid.git] / src / simix / host_private.h
1 /* Copyright (c) 2007, 2008, 2009, 2010. 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 #ifndef _SIMIX_HOST_PRIVATE_H
8 #define _SIMIX_HOST_PRIVATE_H
9
10 #include "simix/datatypes.h"
11 #include "smurf_private.h"
12
13 /** @brief Host datatype */
14 typedef struct s_smx_host {
15   char *name;              /**< @brief host name if any */
16   void *host;                   /* SURF modeling */
17   xbt_swag_t process_list;
18   void *data;              /**< @brief user data */
19 } s_smx_host_t;
20
21 smx_host_t SIMIX_host_create(const char *name, void *workstation, void *data);
22 void SIMIX_host_destroy(void *host);
23 void SIMIX_host_set_data(smx_host_t host, void *data);
24 void* SIMIX_host_get_data(smx_host_t host);
25 xbt_dict_t SIMIX_host_get_properties(smx_host_t host);
26 double SIMIX_host_get_speed(smx_host_t host);
27 double SIMIX_host_get_available_speed(smx_host_t host);
28 int SIMIX_host_get_state(smx_host_t host);
29 smx_action_t SIMIX_host_execute(const char *name,
30     smx_host_t host, double computation_amount, double priority);
31 smx_action_t SIMIX_host_parallel_execute(const char *name,
32     int host_nb, smx_host_t *host_list,
33     double *computation_amount, double *communication_amount,
34     double amount, double rate);
35 void SIMIX_host_execution_destroy(smx_action_t action);
36 void SIMIX_host_execution_cancel(smx_action_t action);
37 double SIMIX_host_execution_get_remains(smx_action_t action);
38 e_smx_state_t SIMIX_host_execution_get_state(smx_action_t action);
39 void SIMIX_host_execution_set_priority(smx_action_t action, double priority);
40 void SIMIX_pre_host_execution_wait(smx_req_t req);
41
42 void SIMIX_host_execution_suspend(smx_action_t action);
43 void SIMIX_host_execution_resume(smx_action_t action);
44
45 void SIMIX_post_host_execute(smx_action_t action);
46
47 #ifdef HAVE_TRACING
48 void SIMIX_set_category(smx_action_t action, const char *category);
49 #endif
50
51 #endif
52