Suppose I have a function named caller, which will call a function named callee:
void caller() { callee(); }
Now caller might be called m
Thread-safe:
static boost::once_flag flag = BOOST_ONCE_INIT; boost::call_once([]{callee();}, flag);