[asterisk-scf-commits] asterisk-scf/integration/media_rtp_pjmedia.git branch "retry_deux" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Tue Apr 17 13:22:21 CDT 2012
branch "retry_deux" has been updated
via d3d13a005deab7a14c5f1a4e72d8e03a3c89757f (commit)
from 3e6890a1c616c573260409589f5ef24a4140b00f (commit)
Summary of changes:
src/RTPSink.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit d3d13a005deab7a14c5f1a4e72d8e03a3c89757f
Author: David M. Lee <dlee at digium.com>
Date: Tue Apr 17 13:20:39 2012 -0500
mSessionId immutability FTW
diff --git a/src/RTPSink.cpp b/src/RTPSink.cpp
index 16faffb..72c3f5f 100644
--- a/src/RTPSink.cpp
+++ b/src/RTPSink.cpp
@@ -92,7 +92,7 @@ public:
/**
* The parent session's id.
*/
- string mSessionId;
+ const string mSessionId;
};
/**
@@ -263,7 +263,7 @@ AsteriskSCF::Media::V1::FormatSeq StreamSinkRTPImpl::getFormats(const Ice::Curre
*/
std::string StreamSinkRTPImpl::getId(const Ice::Current&)
{
- boost::shared_lock<boost::shared_mutex> lock(mImpl->mMutex);
+ // Immutable; no lock needed
/* For now utilize the id of the session */
return mImpl->mSessionId;
}
-----------------------------------------------------------------------
--
asterisk-scf/integration/media_rtp_pjmedia.git
More information about the asterisk-scf-commits
mailing list