-/* Copyright (c) 2009-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2009-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
void ThreadContext::attach_start()
{
// We're breaking the layers here by depending on the upper layer:
- ThreadContext* maestro = (ThreadContext*) simix_global->maestro_process->context;
+ ThreadContext* maestro = (ThreadContext*)simix_global->maestro_process->context_;
xbt_os_sem_release(maestro->begin_);
xbt_assert(not this->isMaestro());
this->start();
xbt_assert(not this->isMaestro());
this->yield();
- ThreadContext* maestro = (ThreadContext*) simix_global->maestro_process->context;
+ ThreadContext* maestro = (ThreadContext*)simix_global->maestro_process->context_;
xbt_os_sem_acquire(maestro->end_);
xbt_os_thread_set_extra_data(nullptr);
{
for (smx_actor_t const& process : simix_global->process_to_run) {
XBT_DEBUG("Handling %p", process);
- ThreadContext* context = static_cast<ThreadContext*>(process->context);
+ ThreadContext* context = static_cast<ThreadContext*>(process->context_);
context->release();
context->wait();
}
void ParallelThreadContext::run_all()
{
for (smx_actor_t const& process : simix_global->process_to_run)
- static_cast<ThreadContext*>(process->context)->release();
+ static_cast<ThreadContext*>(process->context_)->release();
for (smx_actor_t const& process : simix_global->process_to_run)
- static_cast<ThreadContext*>(process->context)->wait();
+ static_cast<ThreadContext*>(process->context_)->wait();
}
void ParallelThreadContext::start_hook()