Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ctx: move some bits to a private header and reduce the exposure of src/internal_config.h
[simgrid.git] / src / kernel / context / ContextThread.cpp
index 9949353..2037673 100644 (file)
@@ -75,9 +75,10 @@ ThreadContext::ThreadContext(std::function<void()> code, void_pfn_smxprocess_t c
 
 ThreadContext::~ThreadContext()
 {
 
 ThreadContext::~ThreadContext()
 {
-  if (this->thread_) /* If there is a thread (maestro don't have any), wait for its termination */
+  if (this->thread_) { /* Maestro don't have any thread */
     thread_->join();
     thread_->join();
-  delete thread_;
+    delete thread_;
+  }
 }
 
 void *ThreadContext::wrapper(void *param)
 }
 
 void *ThreadContext::wrapper(void *param)