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
this header is C++ only
[simgrid.git]
/
src
/
kernel
/
activity
/
SynchroIo.cpp
diff --git
a/src/kernel/activity/SynchroIo.cpp
b/src/kernel/activity/SynchroIo.cpp
index
012165b
..
30e5cdd
100644
(file)
--- a/
src/kernel/activity/SynchroIo.cpp
+++ b/
src/kernel/activity/SynchroIo.cpp
@@
-4,8
+4,9
@@
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/kernel/activity/SynchroIo.hpp"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/kernel/activity/SynchroIo.hpp"
-#include "src/surf/surf_interface.hpp"
#include "src/simix/smx_private.h"
#include "src/simix/smx_private.h"
+#include "src/surf/FileImpl.hpp"
+#include "src/surf/surf_interface.hpp"
void simgrid::kernel::activity::IoImpl::suspend()
{
void simgrid::kernel::activity::IoImpl::suspend()
{
@@
-24,13
+25,12
@@
void simgrid::kernel::activity::IoImpl::post()
for (smx_simcall_t simcall : simcalls) {
switch (simcall->call) {
case SIMCALL_FILE_OPEN: {
for (smx_simcall_t simcall : simcalls) {
switch (simcall->call) {
case SIMCALL_FILE_OPEN: {
- smx_file_t tmp = xbt_new(s_smx_file_t,1);
- tmp->surf_file = surf_storage_action_get_file(surf_io);
+ surf_file_t tmp = surf_storage_action_get_file(surf_io);
simcall_file_open__set__result(simcall, tmp);
break;
}
case SIMCALL_FILE_CLOSE:
simcall_file_open__set__result(simcall, tmp);
break;
}
case SIMCALL_FILE_CLOSE:
-
xbt_free(simcall_file_close__get__fd(simcall)
);
+
delete simcall_file_close__get__fd(simcall
);
simcall_file_close__set__result(simcall, 0);
break;
case SIMCALL_FILE_WRITE:
simcall_file_close__set__result(simcall, 0);
break;
case SIMCALL_FILE_WRITE: