X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/808bc801011b8291383a7fb87669eb67f46f3a07..32db5a3c200f56f6c965eeddc14e6f88341acbe8:/src/kernel/activity/SynchroRaw.hpp?ds=sidebyside diff --git a/src/kernel/activity/SynchroRaw.hpp b/src/kernel/activity/SynchroRaw.hpp index cac619c01a..91158611f0 100644 --- a/src/kernel/activity/SynchroRaw.hpp +++ b/src/kernel/activity/SynchroRaw.hpp @@ -1,29 +1,28 @@ -/* Copyright (c) 2007-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2019. 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. */ -#ifndef _SIMIX_SYNCHRO_RAW_HPP -#define _SIMIX_SYNCHRO_RAW_HPP +#ifndef SIMIX_SYNCHRO_RAW_HPP +#define SIMIX_SYNCHRO_RAW_HPP -#include "surf/surf.h" -#include "src/kernel/activity/Synchro.h" +#include "src/kernel/activity/ActivityImpl.hpp" +#include "surf/surf.hpp" namespace simgrid { namespace kernel { namespace activity { /** Used to implement mutexes, semaphores and conditions */ - XBT_PUBLIC_CLASS Raw : public Synchro { - public: - ~Raw() override; - void suspend() override; - void resume() override; - void post() override; - - surf_action_t sleep = nullptr; - }; - +class XBT_PUBLIC RawImpl : public ActivityImpl { +public: + ~RawImpl() override; + RawImpl* start(s4u::Host* host, double timeout); + void suspend() override; + void resume() override; + void post() override; + void finish() override; +}; }}} // namespace simgrid::kernel::activity #endif