1 /* Copyright (c) 2015-2022. 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_MC_TRANSITION_SYNCHRO_HPP
7 #define SIMGRID_MC_TRANSITION_SYNCHRO_HPP
9 #include "src/mc/transition/Transition.hpp"
14 class BarrierTransition : public Transition {
18 std::string to_string(bool verbose) const override;
19 BarrierTransition(aid_t issuer, int times_considered, Type type, std::stringstream& stream);
20 bool depends(const Transition* other) const override;
23 class MutexTransition : public Transition {
28 std::string to_string(bool verbose) const override;
29 MutexTransition(aid_t issuer, int times_considered, Type type, std::stringstream& stream);
30 bool depends(const Transition* other) const override;
33 class SemaphoreTransition : public Transition {
38 std::string to_string(bool verbose) const override;
39 SemaphoreTransition(aid_t issuer, int times_considered, Type type, std::stringstream& stream);
40 bool depends(const Transition* other) const override;
44 } // namespace simgrid