X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/38f7ddbf61f574a934f191ef2d8358d9f8be1f96..583a10d8a63c6c037d2116f15dbbd3c2b035806e:/src/kernel/activity/SynchroRaw.hpp diff --git a/src/kernel/activity/SynchroRaw.hpp b/src/kernel/activity/SynchroRaw.hpp index f5ef90d2fc..91158611f0 100644 --- a/src/kernel/activity/SynchroRaw.hpp +++ b/src/kernel/activity/SynchroRaw.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2017. 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. */ @@ -6,25 +6,23 @@ #ifndef SIMIX_SYNCHRO_RAW_HPP #define SIMIX_SYNCHRO_RAW_HPP -#include "surf/surf.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 RawImpl : public ActivityImpl -{ +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; - - surf_action_t sleep = nullptr; - }; - + void finish() override; +}; }}} // namespace simgrid::kernel::activity #endif