[bind10-dev] are static Logger objects safe?

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Thu Jun 9 23:26:11 UTC 2011


I've just notice there are many (namespace scope) static Logger
objects:

src/bin/resolver/resolver_log.cc:isc::log::Logger resolver_logger("resolver");
src/lib/asiodns/io_fetch.cc:isc::log::Logger logger("asiolink");
...

In general such static objects can cause static initialization fiasco
very easily and should be avoided whenever possible.  Are they really
safe?

---
JINMEI, Tatuya



More information about the bind10-dev mailing list