class XBT_PUBLIC Activity {
friend Comm;
friend Exec;
- friend ExecSeq;
- friend ExecPar;
friend Io;
protected:
Activity& operator=(Activity const&) = delete;
#endif
- enum class State { INITED = 0, STARTING, STARTED, CANCELED, ERRORED, FINISHED };
+ enum class State { INITED = 0, STARTING, STARTED, CANCELED,
+ // ERRORED, // FIXME: state has never been used
+ FINISHED };
/** Starts a previously created activity.
*
/** Retrieve the current state of the activity */
Activity::State get_state() const { return state_; }
void set_state(Activity::State state) { state_ = state; }
- /** Tests whether the given activity is terminated yet. This is a pure function. */
- virtual bool test() = 0;
+ /** Tests whether the given activity is terminated yet. */
+ virtual bool test();
+
virtual const char* get_cname() const = 0;
virtual const std::string& get_name() const = 0;