[asterisk-scf-commits] asterisk-scf/release/slice.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Aug 15 14:32:37 CDT 2012


branch "master" has been updated
       via  80744add0ca07b8b054cf12ef420fdfc41823418 (commit)
      from  b37df743e01dcbe0ffa50dd302f15549f2e8d906 (commit)

Summary of changes:
 .../AsteriskSCF/System/ThreadPool/ThreadPoolIf.ice |   15 ++++++++++++---
 slice/AsteriskSCF/System/WorkQueue/WorkQueueIf.ice |    6 +++---
 2 files changed, 15 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit 80744add0ca07b8b054cf12ef420fdfc41823418
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Thu Jul 26 18:46:13 2012 -0500

    Minor changes to thread and work listener interfaces. Provides more information to listener.

diff --git a/slice/AsteriskSCF/System/ThreadPool/ThreadPoolIf.ice b/slice/AsteriskSCF/System/ThreadPool/ThreadPoolIf.ice
index eb500a5..fbc70b8 100644
--- a/slice/AsteriskSCF/System/ThreadPool/ThreadPoolIf.ice
+++ b/slice/AsteriskSCF/System/ThreadPool/ThreadPoolIf.ice
@@ -67,6 +67,15 @@ module V1
     local interface PoolListener
     {
         /**
+         * Indicates the ThreadPool has been initialized. By default, there 
+         * are no active threads in the pool. The listener can use this
+         * event to set an initial pool size.
+         *
+         * @param tpool A handle to the Pool
+         */
+         void initialized(Pool tpool);
+
+        /**
          * Indicates that the state of one or more of the Pool's threads has changed
          *
          * @param tpool A handle to the Pool
@@ -85,10 +94,10 @@ module V1
          *
          * @param tpool A handle to the Pool
          * @param newWorkCount The number of new items added to the Queue
-         * @param wasEmpty True if the Queue was empty prior to the addition of
-         * new Work. False otherwise.
+         * @param newQueueSize The size of the queue after adding the new work.
+         * If numNewWork equals newQueueSize, the queue was previously empty. 
          */
-        void queueWorkAdded(Pool tpool, long newWorkCount, bool wasEmpty);
+        void queueWorkAdded(Pool tpool, long numNewWork, long newQueueSize);
 
         /**
          * Indicates that the Pool's queue is empty
diff --git a/slice/AsteriskSCF/System/WorkQueue/WorkQueueIf.ice b/slice/AsteriskSCF/System/WorkQueue/WorkQueueIf.ice
index 72ed1b9..806637b 100644
--- a/slice/AsteriskSCF/System/WorkQueue/WorkQueueIf.ice
+++ b/slice/AsteriskSCF/System/WorkQueue/WorkQueueIf.ice
@@ -42,10 +42,10 @@ module V1
          * Indicates work has been added to the Queue or SuspendableQueue
          *
          * @param numNewWork The number of items of Work added to the queue
-         * @param wasEmpty True if the queue was empty prior
-         * to the addition of the work. False otherwise.
+         * @param newQueueSize The new size of the queue. If this is the same
+         * as numNewWork, the queue was previously empty. 
          */
-        void workAdded(QueueBase q, long numNewWork, bool wasEmpty);
+        void workAdded(QueueBase q, long numNewWork, long newQueueSize);
 
         /**
          * Indicates that the Queue or SuspendableQueue is now empty

-----------------------------------------------------------------------


-- 
asterisk-scf/release/slice.git



More information about the asterisk-scf-commits mailing list