- this->fun = std::move(fun);
- this->data = &data;
- this->index = 0;
- this->synchro->master_signal(); // maestro runs futex_wake to wake all the minions (the working threads)
- this->work(); // maestro works with its minions
- this->synchro->master_wait(); // When there is no more work to do, then maestro waits for the last minion to stop
+ worker_fun = std::move(fun);
+ common_data = &data;
+ common_index = 0;
+ synchro->master_signal(); // maestro runs futex_wake to wake all the minions (the working threads)
+ work(); // maestro works with its minions
+ synchro->master_wait(); // When there is no more work to do, then maestro waits for the last minion to stop