[asterisk-scf-commits] asterisk-scf/integration/ice-util-cpp.git branch "interrupt-item" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Nov 30 11:04:34 CST 2011


branch "interrupt-item" has been updated
       via  a6705a694a8338e4a7f9c6d87d5b48a0e8b0a673 (commit)
      from  b604f30dd24d6b500b39445220766c7fada40838 (commit)

Summary of changes:
 include/AsteriskSCF/WorkQueue/Dispatched.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit a6705a694a8338e4a7f9c6d87d5b48a0e8b0a673
Author: Joshua Colp <jcolp at digium.com>
Date:   Wed Nov 30 13:07:00 2011 -0400

    Make it absolutely clear what must happen for isDestroyed to return true.

diff --git a/include/AsteriskSCF/WorkQueue/Dispatched.h b/include/AsteriskSCF/WorkQueue/Dispatched.h
index ef1c912..b69bcf8 100644
--- a/include/AsteriskSCF/WorkQueue/Dispatched.h
+++ b/include/AsteriskSCF/WorkQueue/Dispatched.h
@@ -31,7 +31,7 @@ public:
 
     bool isDestroyed()
     {
-        if (boost::interprocess::detail::atomic_read32(&mDestroyed))
+        if (boost::interprocess::detail::atomic_read32(&mDestroyed) > 0)
         {
             return true;
         }

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


-- 
asterisk-scf/integration/ice-util-cpp.git



More information about the asterisk-scf-commits mailing list