#ifndef SIMGRID_KERNEL_ACTIVITY_SEMAPHOREIMPL_HPP
#define SIMGRID_KERNEL_ACTIVITY_SEMAPHOREIMPL_HPP
-#include <atomic>
-#include <boost/intrusive/list.hpp>
-
#include "simgrid/s4u/Semaphore.hpp"
#include "src/kernel/actor/ActorImpl.hpp"
#include "src/kernel/actor/SynchroObserver.hpp"
+#include <atomic>
+#include <boost/intrusive/list.hpp>
+
namespace simgrid::kernel::activity {
/** Semaphore Acquisition: the act / process of acquiring the semaphore.
bool test(actor::ActorImpl* issuer = nullptr) override { return granted_; }
void wait_for(actor::ActorImpl* issuer, double timeout) override;
- void post() override;
void finish() override;
void cancel() override;
void set_exception(actor::ActorImpl* issuer) override
std::deque<SemAcquisitionImplPtr> ongoing_acquisitions_;
static unsigned next_id_;
- unsigned id_ = next_id_++;
+ const unsigned id_ = next_id_++;
friend SemAcquisitionImpl;
friend actor::SemaphoreObserver;