Author: tschoening Date: Sun Feb 9 19:56:02 2014 New Revision: 1566382 URL: http://svn.apache.org/r1566382 Log: spelling
Modified: incubator/log4cxx/trunk/src/main/cpp/hierarchy.cpp Modified: incubator/log4cxx/trunk/src/main/cpp/hierarchy.cpp URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/main/cpp/hierarchy.cpp?rev=1566382&r1=1566381&r2=1566382&view=diff ============================================================================== --- incubator/log4cxx/trunk/src/main/cpp/hierarchy.cpp (original) +++ incubator/log4cxx/trunk/src/main/cpp/hierarchy.cpp Sun Feb 9 19:56:02 2014 @@ -17,7 +17,7 @@ #if defined(_MSC_VER) #pragma warning ( disable: 4231 4251 4275 4786 ) -#endif +#endif #include <log4cxx/logstring.h> #include <log4cxx/spi/loggerfactory.h> @@ -48,7 +48,7 @@ using namespace log4cxx::helpers; IMPLEMENT_LOG4CXX_OBJECT(Hierarchy) -Hierarchy::Hierarchy() : +Hierarchy::Hierarchy() : pool(), mutex(pool), loggers(new LoggerMap()), @@ -101,12 +101,12 @@ void Hierarchy::clear() void Hierarchy::emitNoAppenderWarning(const LoggerPtr& logger) { bool emitWarning = false; - { + { synchronized sync(mutex); emitWarning = !emittedNoAppenderWarning; emittedNoAppenderWarning = true; } - + // No appender in hierarchy, warn user only once. if(emitWarning) { @@ -163,7 +163,7 @@ void Hierarchy::fireAddAppenderEvent(con { setConfigured(true); HierarchyEventListenerList clonedList; - { + { synchronized sync(mutex); clonedList = listeners; } @@ -182,7 +182,7 @@ void Hierarchy::fireRemoveAppenderEvent( { HierarchyEventListenerList clonedList; - { + { synchronized sync(mutex); clonedList = listeners; } @@ -333,7 +333,7 @@ void Hierarchy::updateParents(LoggerPtr bool parentFound = false; - // if name = "w.x.y.z", loop thourgh "w.x.y", "w.x" and "w", but not "w.x.y.z" + // if name = "w.x.y.z", loop through "w.x.y", "w.x" and "w", but not "w.x.y.z" for(size_t i = name.find_last_of(0x2E /* '.' */, length-1); i != LogString::npos; i = name.find_last_of(0x2E /* '.' */, i-1))