Namespaces | Defines

_src_base_busy.hh File Reference

Macros to create a run-once block of code. More...

#include "base/auto_flag.hh"

Go to the source code of this file.

Namespaces

namespace  base
 

Library of base code.


Defines

#define BUSY_BEGIN
#define BUSY_BEGIN_ASSERT
#define BUSY_END

Detailed Description

Macros to create a run-once block of code.

LastChangedDate:
2010-02-27 16:02:48 -0500 (Sat, 27 Feb 2010)
Author:
Jim E. Brooks http://www.palomino3d.org

Define Documentation

#define BUSY_BEGIN
Value:
{ PERSISTENT bool sBusy = false; \
                             if ( EX( not sBusy ) )         \
                             { AutoFlag autoFlag( &sBusy );
#define BUSY_BEGIN_ASSERT
Value:
{ PERSISTENT bool sBusy = false; \
                             ASSERT( not sBusy );           \
                             if ( EX( not sBusy ) )         \
                             { AutoFlag autoFlag( &sBusy );
#define BUSY_END
Value:
} /* close "if" block */       \
                           }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10