[asterisk-scf-commits] asterisk-scf/integration/ice-util-cpp.git branch "partyidextensionpoint" created.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Sep 14 22:58:38 CDT 2011
branch "partyidextensionpoint" has been created
at 0241337c61f86dccc6a44a5bac195dd0a9f6f1f1 (commit)
- Log -----------------------------------------------------------------
commit 0241337c61f86dccc6a44a5bac195dd0a9f6f1f1
Author: Ken Hunt <ken.hunt at digium.com>
Date: Wed Sep 14 22:56:31 2011 -0500
Added a clear operation.
diff --git a/include/AsteriskSCF/Collections/LoggedSet.h b/include/AsteriskSCF/Collections/LoggedSet.h
index c43111d..4edc4ee 100644
--- a/include/AsteriskSCF/Collections/LoggedSet.h
+++ b/include/AsteriskSCF/Collections/LoggedSet.h
@@ -244,6 +244,12 @@ public:
return mMap.empty();
}
+ void clear()
+ {
+ boost::unique_lock<boost::shared_mutex> lock(mLock);
+ return mMap.clear();
+ }
+
// A shared pointer to this set type.
typedef boost::shared_ptr< LoggedSet<T, K, NullItemException> > SetPtr;
-----------------------------------------------------------------------
--
asterisk-scf/integration/ice-util-cpp.git
More information about the asterisk-scf-commits
mailing list