The Battle for Wesnoth  1.19.0+dev
save_blocker.hpp File Reference
#include <SDL2/SDL_mutex.h>
#include <cassert>
Include dependency graph for save_blocker.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  save_blocker
 While any instance of this class exists, attempts to save the game via any call to play_controller will be temporarily postponed: the call will return immediately without performing the save, but the save method will then be reinvoked from this class's destructor. More...
class  save_blocker::save_unblocker
 An exception-safe means of making sure that unblock() gets called after try_block(). More...