- // We do not need the semaphores when maestro is in main:
- // if (!(maestro && !code)) {
- this->begin_ = xbt_os_sem_init(0);
- this->end_ = xbt_os_sem_init(0);
- // }
+ // We do not need the semaphores when maestro is in main, but we create them anyway for simplicity wrt the case where maestro is externalized
+ this->begin_ = xbt_os_sem_init(0);
+ this->end_ = xbt_os_sem_init(0);