The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
leave_synced_context Class Reference

A RAII object to temporary leave the synced context like in wesnoth.synchronize_choice. More...

#include <synced_context.hpp>

Public Member Functions

 leave_synced_context ()
 
 ~leave_synced_context ()
 

Private Attributes

randomness::rngold_rng_
 

Detailed Description

A RAII object to temporary leave the synced context like in wesnoth.synchronize_choice.

Can only be used from inside a synced context.

Definition at line 280 of file synced_context.hpp.

Constructor & Destructor Documentation

◆ leave_synced_context()

leave_synced_context::leave_synced_context ( )

◆ ~leave_synced_context()

leave_synced_context::~leave_synced_context ( )

Member Data Documentation

◆ old_rng_

randomness::rng* leave_synced_context::old_rng_
private

Definition at line 287 of file synced_context.hpp.

Referenced by ~leave_synced_context().


The documentation for this class was generated from the following files: