Boost C++ Libraries

PrevUpHomeNext

Macro BOOST_LOG_ONCE_BLOCK_FLAG

BOOST_LOG_ONCE_BLOCK_FLAG

Synopsis

// In header: <boost/log/utility/once_block.hpp>

BOOST_LOG_ONCE_BLOCK_FLAG(flag_var)

Description

Begins a code block to be executed only once, with protection against thread concurrency. User has to provide the flag variable that controls whether the block has already been executed.


PrevUpHomeNext