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();
- delete thread_;
+ delete thread_;
+ }
}
void *ThreadContext::wrapper(void *param)