From 69efb591257bafcd18b5b86e4221c709d6801d04 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Fri, 5 May 2006 23:37:24 +0000 Subject: [PATCH] added noNewInterests flag --- direct/src/distributed/DoInterestManager.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/direct/src/distributed/DoInterestManager.py b/direct/src/distributed/DoInterestManager.py index e6cda16387..6980de8834 100755 --- a/direct/src/distributed/DoInterestManager.py +++ b/direct/src/distributed/DoInterestManager.py @@ -82,15 +82,20 @@ class DoInterestManager(DirectObject.DirectObject): DirectObject.DirectObject.__init__(self) self._addInterestEvent = uniqueName('DoInterestManager-Add') self._removeInterestEvent = uniqueName('DoInterestManager-Remove') + self._noNewInterests = True def _getAnonymousEvent(self, desc): return 'anonymous-%s-%s' % (desc, DoInterestManager._Serial.next()) + def setNoNewInterests(self, flag): + self._noNewInterests = flag + def addInterest(self, parentId, zoneIdList, description, event=None): """ Look into a (set of) zone(s). """ assert DoInterestManager.notify.debugCall() + assert not self._noNewInterests handle = self._getNextHandle() scopeId = self._getNextScopeId() if event is None: @@ -174,6 +179,7 @@ class DoInterestManager(DirectObject.DirectObject): If this is a problem, consider opening multiple interests. """ assert DoInterestManager.notify.debugCall() + assert not self._noNewInterests exists = False if event is None: event = self._getAnonymousEvent('alterInterest')