- xbt_mutex_acquire(comm->mutex);
- comm->receiver_process = NULL;
- xbt_cond_signal(comm->cond);
- xbt_mutex_release(comm->mutex);
+ xbt_mutex_acquire(comm->receiver_mutex);
+ comm->receiver_thread = NULL;
+ xbt_cond_signal(comm->receiver_cond);
+ xbt_mutex_release(comm->receiver_mutex);