From: Thomas Jarosch Date: Fri, 15 Jul 2011 14:59:11 +0000 (+0200) Subject: Use std::vector instead of std::list for active ScopeTracker management (we just... X-Git-Tag: v2.6~49 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=84eef65a6a20380b9ceeab4d14ce904ab1ef8e07;p=libi2ncommon Use std::vector instead of std::list for active ScopeTracker management (we just append/delete at the end of the list all the time) --- diff --git a/src/tracefunc.cpp b/src/tracefunc.cpp index 368559c..54a924c 100644 --- a/src/tracefunc.cpp +++ b/src/tracefunc.cpp @@ -20,7 +20,7 @@ on this file might be covered by the GNU General Public License. /** @file * @brief implementation of tracing functionality. * - * @copyright © Copyright 2008 by Intra2net AG + * @copyright © Copyright 2008,2011 by Intra2net AG * * Every thread gets its' own ScopeTracker stack via TLS (thread local storage) * @@ -43,7 +43,7 @@ using Logger::GlobalLogger; class PerThreadContainer { public: - typedef std::list< ScopeTracker* > ScopeTrackerList; + typedef std::vector< ScopeTracker* > ScopeTrackerList; /// List of currently active scope trackers ScopeTrackerList scope_tracker_list;