Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
once_block.hpp File Reference

The header defines classes and macros for once-blocks. More...

#include <boost/log/detail/config.hpp>
#include <boost/log/utility/unique_identifier_name.hpp>
#include <boost/log/detail/header.hpp>
#include <boost/log/detail/footer.hpp>
Include dependency graph for once_block.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::once_block_flag
 A flag to detect if a code block has already been executed. More...
 
class  boost::aux::once_block_sentry
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::aux
 

Macros

#define BOOST_LOG_ONCE_BLOCK_INIT   { boost::log::once_block_flag::uninitialized }
 
#define BOOST_LOG_ONCE_BLOCK_FLAG_INTERNAL(flag_var, sentry_var)
 
#define BOOST_LOG_ONCE_BLOCK_INTERNAL(flag_var, sentry_var)
 
#define BOOST_LOG_ONCE_BLOCK_FLAG(flag_var)
 
#define BOOST_LOG_ONCE_BLOCK()
 

Detailed Description

The header defines classes and macros for once-blocks.

Author
Andrey Semashev
Date
23.06.2010

Macro Definition Documentation

#define BOOST_LOG_ONCE_BLOCK ( )
Value:
BOOST_LOG_UNIQUE_IDENTIFIER_NAME(_boost_log_once_block_flag_),\
BOOST_LOG_UNIQUE_IDENTIFIER_NAME(_boost_log_once_block_sentry_))
#define BOOST_LOG_ONCE_BLOCK_INTERNAL(flag_var, sentry_var)
Definition: once_block.hpp:166
#define BOOST_LOG_UNIQUE_IDENTIFIER_NAME(prefix)
Definition: unique_identifier_name.hpp:47
#define BOOST_LOG_ONCE_BLOCK_FLAG (   flag_var)
Value:
flag_var,\
BOOST_LOG_UNIQUE_IDENTIFIER_NAME(_boost_log_once_block_sentry_))
#define BOOST_LOG_ONCE_BLOCK_FLAG_INTERNAL(flag_var, sentry_var)
Definition: once_block.hpp:161
#define BOOST_LOG_UNIQUE_IDENTIFIER_NAME(prefix)
Definition: unique_identifier_name.hpp:47
#define BOOST_LOG_ONCE_BLOCK_FLAG_INTERNAL (   flag_var,
  sentry_var 
)
Value:
for (boost::log::aux::once_block_sentry sentry_var((flag_var));\
BOOST_UNLIKELY(!sentry_var.executed()); sentry_var.commit())
#define BOOST_UNLIKELY(x)
Definition: gcc.hpp:96
#define BOOST_LOG_ONCE_BLOCK_INIT   { boost::log::once_block_flag::uninitialized }
#define BOOST_LOG_ONCE_BLOCK_INTERNAL (   flag_var,
  sentry_var 
)
Value:
static boost::log::once_block_flag flag_var;\
#define BOOST_LOG_ONCE_BLOCK_FLAG_INTERNAL(flag_var, sentry_var)
Definition: once_block.hpp:161