A flag to detect if a code block has already been executed. More...
#include <once_block.hpp>
Public Types | |
enum | { uninitialized = 0, being_initialized, initialized } |
Public Attributes | |
unsigned char | status |
A flag to detect if a code block has already been executed.
This structure should be used in conjunction with the BOOST_LOG_ONCE_BLOCK_FLAG
macro. Usage example:
once_block_flag flag = BOOST_LOG_ONCE_BLOCK_INIT;
void foo() { BOOST_LOG_ONCE_BLOCK_FLAG(flag) { puts("Hello, world once!"); } }
unsigned char boost::once_block_flag::status |