X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/808bc801011b8291383a7fb87669eb67f46f3a07..HEAD:/src/kernel/activity/SynchroRaw.cpp diff --git a/src/kernel/activity/SynchroRaw.cpp b/src/kernel/activity/SynchroRaw.cpp deleted file mode 100644 index 0f9e29f30d..0000000000 --- a/src/kernel/activity/SynchroRaw.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright (c) 2007-2016. The SimGrid Team. All rights reserved. */ - -/* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ - -#include "src/kernel/activity/SynchroRaw.hpp" -#include "src/surf/surf_interface.hpp" -#include "src/simix/smx_synchro_private.h" - -XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_synchro); - -simgrid::kernel::activity::Raw::~Raw() -{ - sleep->unref(); -} -void simgrid::kernel::activity::Raw::suspend() -{ - /* The suspension of raw synchros is delayed to when the process is rescheduled. */ -} - -void simgrid::kernel::activity::Raw::resume() -{ - /* I cannot resume raw synchros directly. This is delayed to when the process is rescheduled at - * the end of the synchro. */ -} -void simgrid::kernel::activity::Raw::post() -{ - XBT_IN("(%p)",this); - if (sleep->getState() == simgrid::surf::Action::State::failed) - state = SIMIX_FAILED; - else if(sleep->getState() == simgrid::surf::Action::State::done) - state = SIMIX_SRC_TIMEOUT; - - SIMIX_synchro_finish(this); - XBT_OUT(); -}