[asterisk-scf-commits] asterisk-scf/release/ice-util-cpp.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Sep 30 17:52:42 CDT 2011


branch "master" has been updated
       via  470710268ba226751c6098c3f65a761000f7d44c (commit)
      from  80921541054ae118a5d491f310c15599b9fb3d6d (commit)

Summary of changes:
 include/AsteriskSCF/Collections/LoggedSet.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 470710268ba226751c6098c3f65a761000f7d44c
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Fri Sep 30 17:40:37 2011 -0500

    Added a clear operation to the LoggedSet collection.

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/release/ice-util-cpp.git



More information about the asterisk-scf-commits mailing list