[asterisk-scf-commits] asterisk-scf/integration/ice-util-cpp.git branch "retry_deux" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Apr 11 10:55:49 CDT 2012
branch "retry_deux" has been updated
via 8ea5ef0b12e46816baf435e068799e1ef9611e73 (commit)
from e1ea2adcc13c1b3b697447e0b3563d0d0c32daf7 (commit)
Summary of changes:
include/AsteriskSCF/Operations/OperationMonitor.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 8ea5ef0b12e46816baf435e068799e1ef9611e73
Author: Brent Eagles <beagles at digium.com>
Date: Wed Apr 11 13:23:46 2012 -0230
Add a check to see if the AMD result cookie is devoid of registered AMD
callbacks. This can occur if the context value was setup via replication.
diff --git a/include/AsteriskSCF/Operations/OperationMonitor.h b/include/AsteriskSCF/Operations/OperationMonitor.h
index 6cebfb9..09c1643 100755
--- a/include/AsteriskSCF/Operations/OperationMonitor.h
+++ b/include/AsteriskSCF/Operations/OperationMonitor.h
@@ -461,7 +461,7 @@ public:
return mAMDProxy;
}
- void addCB(const CB& cbPtr)
+ bool addCB(const CB& cbPtr)
{
IceUtil::LockT<IceUtil::Mutex> lock(mLock);
if (ContextData::isCompleted())
@@ -474,9 +474,15 @@ public:
{
cbPtr->ice_response(ContextResultData<RT>::mResult);
}
- return;
+ return true;
}
mCallbacks.push_back(cbPtr);
+ return false;
+ }
+
+ size_t callbackCount()
+ {
+ return mCallbacks.size();
}
// A smart pointer for this type.
-----------------------------------------------------------------------
--
asterisk-scf/integration/ice-util-cpp.git
More information about the asterisk-scf-commits
mailing list