Such a lazy resume seem to clash with the use of synchronization
structures. The problem is well illustrated with simgrid-boinc.
Surprisingly, simgrid/valgrind go completely crazy and segfaults in
stuff like pthread_getspecific.
{
xbt_assert((process != NULL), "Invalid parameters");
{
xbt_assert((process != NULL), "Invalid parameters");
- if (!process->suspended) {
- XBT_DEBUG("Process '%s' is not suspended", process->name);
- return;
- }
-
process->suspended = 0;
/* If we are resuming another process, resume the action it was waiting for
process->suspended = 0;
/* If we are resuming another process, resume the action it was waiting for