[asterisk-scf-commits] asterisk-scf/integration/media_rtp_pjmedia.git branch "alternate_source_cleanup" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Jul 9 16:00:00 CDT 2012
branch "alternate_source_cleanup" has been updated
via d5146877151aaf690908b8710a030acf18a557d9 (commit)
from 33d85fe523555ae4ab637ca62f09da3b6b8a91c7 (commit)
Summary of changes:
src/TransportMap.cpp | 9 +--------
src/TransportMap.h | 2 --
2 files changed, 1 insertions(+), 10 deletions(-)
- Log -----------------------------------------------------------------
commit d5146877151aaf690908b8710a030acf18a557d9
Author: Brent Eagles <beagles at digium.com>
Date: Mon Jul 9 18:29:29 2012 -0230
Enable the active transport count logging for all build types.
diff --git a/src/TransportMap.cpp b/src/TransportMap.cpp
index e8fc5f5..02bb415 100755
--- a/src/TransportMap.cpp
+++ b/src/TransportMap.cpp
@@ -185,27 +185,20 @@ TransportMap& TransportMap::instance()
TransportMap TransportMap::mInstance;
TransportMap::TransportMap()
- : mTable(65)
-#ifndef _NDEBUG
- , mCounter(0)
-#endif
+ : mTable(65), mCounter(0)
{
}
void TransportMap::incEntries()
{
-#ifndef _NDEBUG
++mCounter;
lg(Debug) << "Transport added: " << mCounter << " active transports";
-#endif
}
void TransportMap::decEntries()
{
-#ifndef _NDEBUG
--mCounter;
lg(Debug) << "Transport removed: " << mCounter << " active transports";
-#endif
}
MapRecord TransportMap::get(const Ice::Int port)
diff --git a/src/TransportMap.h b/src/TransportMap.h
index bcbf5a7..46998b2 100755
--- a/src/TransportMap.h
+++ b/src/TransportMap.h
@@ -64,9 +64,7 @@ private:
boost::shared_mutex mLock;
TransportTable mTable;
-#ifndef _NDEBUG
unsigned long mCounter;
-#endif
static TransportMap mInstance;
-----------------------------------------------------------------------
--
asterisk-scf/integration/media_rtp_pjmedia.git
More information about the asterisk-scf-commits
mailing list