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
Use a mallocator for MSG tasks
[simgrid.git]
/
src
/
msg
/
private.h
diff --git
a/src/msg/private.h
b/src/msg/private.h
index
af95d1a
..
697381f
100644
(file)
--- a/
src/msg/private.h
+++ b/
src/msg/private.h
@@
-16,6
+16,7
@@
#include "xbt/dict.h"
#include "xbt/context.h"
#include "xbt/config.h"
#include "xbt/dict.h"
#include "xbt/context.h"
#include "xbt/config.h"
+#include "xbt/mallocator.h"
/**************** datatypes **********************************/
/**************** datatypes **********************************/
@@
-87,6
+88,8
@@
typedef struct MSG_Global {
int paje_maxPID;
int PID;
int session;
int paje_maxPID;
int PID;
int session;
+ xbt_mallocator_t task_mallocator;
+ xbt_mallocator_t task_simdata_mallocator;
} s_MSG_Global_t, *MSG_Global_t;
extern MSG_Global_t msg_global;
} s_MSG_Global_t, *MSG_Global_t;
extern MSG_Global_t msg_global;
@@
-123,6
+126,10
@@
int __MSG_process_isBlocked(m_process_t process);
void __MSG_display_process_status(void);
void __MSG_display_process_status(void);
+m_task_t task_mallocator_new_f(void);
+void task_mallocator_free_f(m_task_t task);
+void task_mallocator_reset_f(m_task_t task);
+
#ifdef ALVIN_SPECIAL_LOGING
#define PAJE_PROCESS_STATE(process,state)\
if(msg_global->paje_output) \
#ifdef ALVIN_SPECIAL_LOGING
#define PAJE_PROCESS_STATE(process,state)\
if(msg_global->paje_output) \