X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/37e648f1f5f608085a8abf82b17e34a38e884624..48abcb47c02742dbf29c692b015f056ecb0ae47b:/src/kernel/context/Context.hpp?ds=sidebyside diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index dd4e482c66..674f02d050 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -65,6 +65,9 @@ public: bool iwannadie; Context(std::function code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process); + Context(const Context&) = delete; + Context& operator=(const Context&) = delete; + void operator()() { code_(); } bool has_code() const { return static_cast(code_); } smx_actor_t process() { return this->process_; }