Author: derek Date: Mon Nov 6 20:10:49 2006 New Revision: 159 Modified: sofaswitch/trunk/mcu/member.cxx sofaswitch/trunk/mcu/participant.cxx sofaswitch/trunk/mcu/participant.h Log: Get the closedown of members and participants to work correctly. Add PTRACE statements. Modified: sofaswitch/trunk/mcu/member.cxx ============================================================================== --- sofaswitch/trunk/mcu/member.cxx (original) +++ sofaswitch/trunk/mcu/member.cxx Mon Nov 6 20:10:49 2006 @@ -302,10 +302,13 @@ } } + PTRACE(3, "Member\tClear now empty partydict"); participants.EmptyParticipantDict(); + + PTRACE(3, "Member\tClear now wait for empty partydict"); participants.WaitForTotallyEmpty(); - + PTRACE(3, "Member\tClear now do OnReleaed."); OnReleased(); PTRACE(3, "Member\tOnRelease thread completed for " << *this); Modified: sofaswitch/trunk/mcu/participant.cxx ============================================================================== --- sofaswitch/trunk/mcu/participant.cxx (original) +++ sofaswitch/trunk/mcu/participant.cxx Mon Nov 6 20:10:49 2006 @@ -182,6 +182,7 @@ { int loops = 0; while (countEntries > 0) { + PTRACE(3, "ParticipantDict:: WaitForTotallyEmpty with a count of " << countEntries); loops++; PThread::Sleep(300); if ((loops % 6) == 0) Modified: sofaswitch/trunk/mcu/participant.h ============================================================================== --- sofaswitch/trunk/mcu/participant.h (original) +++ sofaswitch/trunk/mcu/participant.h Mon Nov 6 20:10:49 2006 @@ -120,7 +120,7 @@ /**A particpant calls this method when the participant is deleted. This method is used to keep track of the number of participant instances in this dictionary. */ - void ParticipantDestroyed() { ++countEntries; } + void ParticipantDestroyed() { --countEntries; } /**A participant has gone through it's clear process, and now needs to advise this dictionary that it has been released */
participants (1)
-
SofaSWITCH SVN