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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Jun 15 14:26:43 CDT 2012


branch "master" has been updated
       via  cab9a8e0b2f81f913f2c263226475737d93b53fb (commit)
      from  4bcc38bbb526a17215d53c1791b8ea1493fb4a85 (commit)

Summary of changes:
 src/SIPSession.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit cab9a8e0b2f81f913f2c263226475737d93b53fb
Author: Brent Eagles <beagles at digium.com>
Date:   Fri Jun 15 16:54:23 2012 -0230

    SessionWork derives from two reference counted base classes, resulting in a
    problem with mulitple instances of reference counted bases. Might be
    causing race condition issues depending on the order in which things are
    destroyed. Adding virtual inheritance to cause there to be only one
    reference counted base.

diff --git a/src/SIPSession.h b/src/SIPSession.h
index 867e842..cc1d5d3 100644
--- a/src/SIPSession.h
+++ b/src/SIPSession.h
@@ -69,7 +69,7 @@ class SIPSessionPriv;
  *
  * Each session will have its own SessionWork object to which it will queue suspendable work.
  */
-class SessionWork : public AsteriskSCF::System::WorkQueue::V1::Work, public AsteriskSCF::System::WorkQueue::V1::QueueListener
+class SessionWork : virtual public AsteriskSCF::System::WorkQueue::V1::Work, virtual public AsteriskSCF::System::WorkQueue::V1::QueueListener
 {
 public:
     /**

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list