Public Member Functions

gui2::texecutor Class Reference

Helper to make removing a timer in a callback safe. More...

List of all members.

Public Member Functions

 texecutor (unsigned long id)
 ~texecutor ()

Detailed Description

Helper to make removing a timer in a callback safe.

Upon creation it sets the executing id and clears the remove request flag.

If an remove_timer() is called for the id being executed it requests a remove the timer and exits remove_timer().

Upon destruction it tests whether there was a request to remove the id and does so. It also clears the executing id. It leaves the remove request flag since the execution function needs to know whether or not the event was removed.

Definition at line 68 of file timer.cpp.


Constructor & Destructor Documentation

gui2::texecutor::texecutor ( unsigned long  id  )  [inline]

Definition at line 71 of file timer.cpp.

References gui2::executing_id, and gui2::executing_id_removed.

gui2::texecutor::~texecutor (  )  [inline]

Definition at line 78 of file timer.cpp.

References gui2::executing_id, gui2::executing_id_removed, and gui2::remove_timer().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:50 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs