1 /* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_KERNEL_ACTIVITY_SYNCHRO_RAW_HPP
7 #define SIMGRID_KERNEL_ACTIVITY_SYNCHRO_RAW_HPP
9 #include "src/kernel/activity/ActivityImpl.hpp"
10 #include "surf/surf.hpp"
16 /** Used to implement mutexes, semaphores and conditions */
17 class XBT_PUBLIC RawImpl : public ActivityImpl_T<RawImpl> {
18 sg_host_t host_ = nullptr;
22 RawImpl& set_host(s4u::Host* host);
23 RawImpl& set_timeout(double timeout);
26 void suspend() override;
27 void resume() override;
28 void cancel() override;
30 void finish() override;
32 } // namespace activity
34 } // namespace simgrid