While going through the 'Dodge the creeps!' tutorial in C++, I noticed that signals' callbacks don't seem to observe changes made to a class instance variable:
I validated that the callback is happening to the same object and on the same thread as when the instance variable is updated.
This is probably not a bug, and most likely just some clarifications are needed to explain why that behavior is observed (if that's the expected behavior).
While going through the 'Dodge the creeps!' tutorial in C++, I noticed that signals' callbacks don't seem to observe changes made to a class instance variable:
Hud::is_game_over is updated in Hud::show_game_over, yet when the Hud::on_MessageTimer_timeout callback is fired, the updated value of Hud::is_game_over is not reflected.
I validated that the callback is happening to the same object and on the same thread as when the instance variable is updated.
This is probably not a bug, and most likely just some clarifications are needed to explain why that behavior is observed (if that's the expected behavior).