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 std::map for sparse vectors. This simplifies things
[simgrid.git]
/
src
/
msg
/
msg_host.cpp
diff --git
a/src/msg/msg_host.cpp
b/src/msg/msg_host.cpp
index
a6aae4a
..
d9bf83d
100644
(file)
--- a/
src/msg/msg_host.cpp
+++ b/
src/msg/msg_host.cpp
@@
-12,6
+12,8
@@
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg);
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(msg);
+int sg_storage_max_file_descriptors = 1024;
+
/** @addtogroup m_host_management
* (#msg_host_t) and the functions for managing it.
*
/** @addtogroup m_host_management
* (#msg_host_t) and the functions for managing it.
*
@@
-31,10
+33,8
@@
msg_host_t __MSG_host_create(sg_host_t host) // FIXME: don't return our paramete
priv->dp_updated_by_deleted_tasks = 0;
priv->is_migrating = 0;
priv->dp_updated_by_deleted_tasks = 0;
priv->is_migrating = 0;
- priv->affinity_mask_db = xbt_dict_new_homogeneous(nullptr);
-
priv->file_descriptor_table = xbt_dynar_new(sizeof(int), nullptr);
priv->file_descriptor_table = xbt_dynar_new(sizeof(int), nullptr);
- for (int i=
1023
; i>=0;i--)
+ for (int i=
sg_storage_max_file_descriptors-1
; i>=0;i--)
xbt_dynar_push_as(priv->file_descriptor_table, int, i);
sg_host_msg_set(host,priv);
xbt_dynar_push_as(priv->file_descriptor_table, int, i);
sg_host_msg_set(host,priv);
@@
-119,7
+119,6
@@
void __MSG_host_priv_free(msg_host_priv_t priv)
if (size > 0)
XBT_WARN("dp_objs: %u pending task?", size);
xbt_dict_free(&priv->dp_objs);
if (size > 0)
XBT_WARN("dp_objs: %u pending task?", size);
xbt_dict_free(&priv->dp_objs);
- xbt_dict_free(&priv->affinity_mask_db);
xbt_dynar_free(&priv->file_descriptor_table);
free(priv);
xbt_dynar_free(&priv->file_descriptor_table);
free(priv);