X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ef124af903bef166526a5e5a34e035db21876103..15f9e0adbd11d2a0736440004a2f71ef9cfccab8:/src/kernel/context/ContextRaw.cpp diff --git a/src/kernel/context/ContextRaw.cpp b/src/kernel/context/ContextRaw.cpp index 38f01918b0..622f5b48db 100644 --- a/src/kernel/context/ContextRaw.cpp +++ b/src/kernel/context/ContextRaw.cpp @@ -186,10 +186,6 @@ namespace context { // RawContextFactory -RawContextFactory::RawContextFactory() : SwappedContextFactory("RawContextFactory") {} - -RawContextFactory::~RawContextFactory() = default; - Context* RawContextFactory::create_context(std::function code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process) { @@ -251,27 +247,8 @@ void RawContext::swap_into(SwappedContext* to_) ASAN_FINISH_SWITCH(fake_stack, &from->asan_ctx_->asan_stack_, &from->asan_ctx_->asan_stack_size_); } -void RawContext::stop() -{ - Context::stop(); - throw StopRequest(); -} - // ParallelRawContext -void ParallelRawContext::run_all() -{ - threads_working_ = 0; - if (parmap_ == nullptr) - parmap_ = new simgrid::xbt::Parmap(SIMIX_context_get_nthreads(), SIMIX_context_get_parallel_mode()); - parmap_->apply( - [](smx_actor_t process) { - ParallelRawContext* context = static_cast(process->context_); - context->resume(); - }, - simix_global->process_to_run); -} - void ParallelRawContext::suspend() { /* determine the next context */