- class StopRequest {
- /** @brief Exception launched to kill a process, in order to properly unwind its stack and release RAII stuff
- *
- * Nope, Sonar, this should not inherit of std::exception nor of simgrid::Exception.
- * Otherwise, users may accidentally catch it with a try {} catch (std::exception)
- */
- public:
- StopRequest() = default;
- explicit StopRequest(std::string msg) : msg_(msg) {}
-
- private:
- std::string msg_;
- };
- bool iwannadie;
-
- Context(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process);
+ bool iwannadie = false;
+
+ Context(std::function<void()> code, smx_actor_t actor);