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
[MSVC] cleaner solution to the lack of unistd for flex parsers
[simgrid.git]
/
src
/
xbt
/
parmap.cpp
diff --git
a/src/xbt/parmap.cpp
b/src/xbt/parmap.cpp
index
b2c952c
..
6bf951b
100644
(file)
--- a/
src/xbt/parmap.cpp
+++ b/
src/xbt/parmap.cpp
@@
-122,7
+122,7
@@
xbt_parmap_t xbt_parmap_new(unsigned int num_workers, e_xbt_parmap_mode_t mode)
XBT_DEBUG("Create new parmap (%u workers)", num_workers);
/* Initialize the thread pool data structure */
XBT_DEBUG("Create new parmap (%u workers)", num_workers);
/* Initialize the thread pool data structure */
- xbt_parmap_t parmap =
xbt_new0(s_xbt_parmap_t, 1
);
+ xbt_parmap_t parmap =
new s_xbt_parmap_t(
);
parmap->workers = xbt_new(xbt_os_thread_t, num_workers);
parmap->num_workers = num_workers;
parmap->workers = xbt_new(xbt_os_thread_t, num_workers);
parmap->num_workers = num_workers;
@@
-167,7
+167,7
@@
xbt_parmap_t xbt_parmap_mc_new(unsigned int num_workers, e_xbt_parmap_mode_t mod
XBT_DEBUG("Create new parmap (%u workers)", num_workers);
/* Initialize the thread pool data structure */
XBT_DEBUG("Create new parmap (%u workers)", num_workers);
/* Initialize the thread pool data structure */
- xbt_parmap_t parmap =
xbt_new0(s_xbt_parmap_t, 1
);
+ xbt_parmap_t parmap =
new s_xbt_parmap_t(
);
parmap->workers = xbt_new(xbt_os_thread_t, num_workers);
parmap->num_workers = num_workers;
parmap->workers = xbt_new(xbt_os_thread_t, num_workers);
parmap->num_workers = num_workers;
@@
-211,7
+211,7
@@
void xbt_parmap_destroy(xbt_parmap_t parmap)
xbt_os_mutex_destroy(parmap->done_mutex);
xbt_free(parmap->workers);
xbt_os_mutex_destroy(parmap->done_mutex);
xbt_free(parmap->workers);
-
xbt_free(parmap)
;
+
delete parmap
;
}
/**
}
/**