can wait on several of them simultaneously (as in waitany).
* Fix the way to handle tokens in semaphores so that all access patterns
work: {acquire, acquire_timeout, waitany} / {release, release_forever}.
+ * kill the dirty pimple SIMIX_message_sizes_output()
+ Please use (proper) visualization instead
SIMDAG
* Fix a bug in the management of tasks of size 0 in the surf network
exit(1);
}
res = test_all(argv[1], argv[2]);
- SIMIX_message_sizes_output("toto.txt");
MSG_clean();
if (res == MSG_OK)
exit(1);
}
res = test_all(argv[1], argv[2]);
- SIMIX_message_sizes_output("toto.txt");
MSG_clean();
if (res == MSG_OK)
exit(1);
}
res = test_all(argv[1], argv[2]);
- SIMIX_message_sizes_output("toto.txt");
MSG_clean();
if (res == MSG_OK)
exit(1);
}
res = test_all(argv[1], argv[2]);
- SIMIX_message_sizes_output("toto.txt");
MSG_clean();
if (res == MSG_OK)
#include <xbt/config.h>
#include <xbt/cunit.h>
-/* pimple to display the message sizes */
-XBT_PUBLIC(void) SIMIX_message_sizes_output(const char *filename);
-
#endif /* xbt_H */
}
}
-#include "xbt.h"
-/* pimple to display the message sizes */
-void SIMIX_message_sizes_output(const char *filename)
-{
- uintptr_t key = 0;
- uintptr_t data = 0;
- xbt_dict_cursor_t cursor;
- FILE *out = NULL;
- out = fopen(filename, "w");
- xbt_assert1(out, "Cannot open file %s", filename);
-
- xbt_dict_foreach(simix_global->msg_sizes, cursor, key, data) {
- fprintf(out, "%zu %zu\n", key, data);
- }
- fclose(out);
-}
-
/**
* \brief Return the user data associated to the communication
* \param comm The communication