[CalendarServer-changes] [9572] CalendarServer/branches/users/glyph/q

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 01:54:19 PDT 2012


Revision: 9572
          http://trac.macosforge.org/projects/calendarserver/changeset/9572
Author:   glyph at apple.com
Date:     2012-08-11 01:54:19 -0700 (Sat, 11 Aug 2012)
Log Message:
-----------
flag to indicate whether the worker would be running in real life.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/q/twext/enterprise/test/test_adbapi2.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/q/

Modified: CalendarServer/branches/users/glyph/q/twext/enterprise/test/test_adbapi2.py
===================================================================
--- CalendarServer/branches/users/glyph/q/twext/enterprise/test/test_adbapi2.py	2012-08-11 08:54:18 UTC (rev 9571)
+++ CalendarServer/branches/users/glyph/q/twext/enterprise/test/test_adbapi2.py	2012-08-11 08:54:19 UTC (rev 9572)
@@ -337,6 +337,7 @@
         self.test = test
         self.started = False
         self.stopped = False
+        self._workerIsRunning = False
 
 
     def start(self):
@@ -376,7 +377,11 @@
 
 
     def callInThread(self, f, *a, **k):
-        pass
+        """
+        This should be called only once, to start the worker function that
+        dedicates a thread to this L{ThreadHolder}.
+        """
+        self._workerIsRunning = True
 
 
     def flush(self):
@@ -386,6 +391,8 @@
         try:
             while self._qpull():
                 pass
+            else:
+                self._workerIsRunning = False
         except Empty:
             pass
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120811/ce5a0410/attachment-0001.html>


More information about the calendarserver-changes mailing list