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
Build ID are somewhat gnu/linux specific.
[simgrid.git]
/
src
/
mc
/
Client.cpp
diff --git
a/src/mc/Client.cpp
b/src/mc/Client.cpp
index
cf7398d
..
7d326ff
100644
(file)
--- a/
src/mc/Client.cpp
+++ b/
src/mc/Client.cpp
@@
-95,7
+95,7
@@
void Client::handleMessages()
{
// Check deadlock:
bool deadlock = false;
- smx_
process
_t process;
+ smx_
actor
_t process;
if (xbt_swag_size(simix_global->process_list)) {
deadlock = true;
xbt_swag_foreach(process, simix_global->process_list)
@@
-123,7
+123,7
@@
void Client::handleMessages()
if (s != sizeof(message))
xbt_die("Unexpected size for SIMCALL_HANDLE");
memcpy(&message, message_buffer, sizeof(message));
- smx_
process
_t process = SIMIX_process_from_PID(message.pid);
+ smx_
actor
_t process = SIMIX_process_from_PID(message.pid);
if (!process)
xbt_die("Invalid pid %lu", (unsigned long) message.pid);
SIMIX_simcall_handle(&process->simcall, message.value);
@@
-138,7
+138,9
@@
void Client::handleMessages()
if (s != sizeof(message))
xbt_die("Unexpected size for SIMCALL_HANDLE");
memcpy(&message, message_buffer, sizeof(message));
+#if HAVE_SMPI
smpi_really_switch_data_segment(message.index);
+#endif
}
break;
@@
-226,7
+228,7
@@
void Client::declareSymbol(const char *name, int* value)
xbt_die("Could send REGISTER_SYMBOL message to model-checker");
}
-void Client::declareStack(void *stack, size_t size, smx_
process
_t process, ucontext_t* context)
+void Client::declareStack(void *stack, size_t size, smx_
actor
_t process, ucontext_t* context)
{
xbt_mheap_t heap = mmalloc_get_current_heap();