Register the function to be called when all slots data is ready to be processed
| 1626 | |
| 1627 | // Register the function to be called when all slots data is ready to be processed |
| 1628 | void on_update_slots(std::function<void(void)> callback) { |
| 1629 | callback_update_slots = std::move(callback); |
| 1630 | } |
| 1631 | |
| 1632 | // Call when the state of one slot is changed, it will move one task from deferred to main queue |
| 1633 | void pop_deferred_task() { |