A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Move typedef in correct header
[simgrid.git]
/
src
/
mc
/
mc_smx.h
diff --git
a/src/mc/mc_smx.h
b/src/mc/mc_smx.h
index 32b78cc569bea9a195078fed8eb4ba734aca13e0..827634d15087cc7727246b16dc3676b6c22767b0 100644
(file)
--- a/
src/mc/mc_smx.h
+++ b/
src/mc/mc_smx.h
@@
-4,8
+4,8
@@
/* 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. */
/* 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. */
-#ifndef MC_SMX_H
-#define MC_SMX_H
+#ifndef
SIMGRID_
MC_SMX_H
+#define
SIMGRID_
MC_SMX_H
#include <stddef.h>
#include <stddef.h>
@@
-14,7
+14,7
@@
#include "smpi/private.h"
#include "smpi/private.h"
-#include "mc
_process.h
"
+#include "mc
/Process.hpp
"
#include "mc_protocol.h"
/** @file
#include "mc_protocol.h"
/** @file
@@
-33,7
+33,7
@@
*
* The process lists are currently refreshed each time MCed code is executed.
* We don't try to give a persistent MCer address for a given MCed process.
*
* The process lists are currently refreshed each time MCed code is executed.
* We don't try to give a persistent MCer address for a given MCed process.
- * For this reason, a MCer
mc_process_t
is currently not reusable after
+ * For this reason, a MCer
simgrid::mc::Process*
is currently not reusable after
* MCed code.
*/
* MCed code.
*/
@@
-49,9
+49,11
@@
struct s_mc_smx_process_info {
char* name;
};
char* name;
};
-
xbt_dynar_t MC_smx_process_info_list_new(void)
;
+
typedef struct s_mc_smx_process_info s_mc_smx_process_info_t, *mc_smx_process_info_t
;
-void MC_process_smx_refresh(mc_process_t process);
+XBT_PRIVATE xbt_dynar_t MC_smx_process_info_list_new(void);
+
+XBT_PRIVATE void MC_process_smx_refresh(simgrid::mc::Process* process);
/** Get the issuer of a simcall (`req->issuer`)
*
/** Get the issuer of a simcall (`req->issuer`)
*
@@
-62,10
+64,10
@@
void MC_process_smx_refresh(mc_process_t process);
* @param process the MCed process
* @param req the simcall (copied in the local process)
*/
* @param process the MCed process
* @param req the simcall (copied in the local process)
*/
-smx_process_t MC_smx_simcall_get_issuer(smx_simcall_t req);
+
XBT_PRIVATE
smx_process_t MC_smx_simcall_get_issuer(smx_simcall_t req);
-const char* MC_smx_process_get_name(smx_process_t p);
-const char* MC_smx_process_get_host_name(smx_process_t p);
+
XBT_PRIVATE
const char* MC_smx_process_get_name(smx_process_t p);
+
XBT_PRIVATE
const char* MC_smx_process_get_host_name(smx_process_t p);
#define MC_EACH_SIMIX_PROCESS(process, code) \
if (mc_mode == MC_MODE_CLIENT) { \
#define MC_EACH_SIMIX_PROCESS(process, code) \
if (mc_mode == MC_MODE_CLIENT) { \
@@
-83,20
+85,20
@@
const char* MC_smx_process_get_host_name(smx_process_t p);
}
/** Execute a given simcall */
}
/** Execute a given simcall */
-void MC_simcall_handle(smx_simcall_t req, int value);
+
XBT_PRIVATE
void MC_simcall_handle(smx_simcall_t req, int value);
-int MC_smpi_process_count(void);
+
XBT_PRIVATE
int MC_smpi_process_count(void);
/* ***** Resolve (local/MCer structure from remote/MCed addresses) ***** */
/** Get a local copy of the process from the process remote address */
/* ***** Resolve (local/MCer structure from remote/MCed addresses) ***** */
/** Get a local copy of the process from the process remote address */
-smx_process_t MC_smx_resolve_process(smx_process_t process_remote_address);
+
XBT_PRIVATE
smx_process_t MC_smx_resolve_process(smx_process_t process_remote_address);
/** Get the process info structure from the process remote address */
/** Get the process info structure from the process remote address */
-mc_smx_process_info_t MC_smx_resolve_process_info(smx_process_t process_remote_address);
+
XBT_PRIVATE
mc_smx_process_info_t MC_smx_resolve_process_info(smx_process_t process_remote_address);
-unsigned long MC_smx_get_maxpid(void);
+
XBT_PRIVATE
unsigned long MC_smx_get_maxpid(void);
SG_END_DECL()
SG_END_DECL()