소스 검색

show suspend/resume in test job

Darren Ranalli 19 년 전
부모
커밋
e0ac96d42a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      direct/src/showbase/Job.py

+ 2 - 0
direct/src/showbase/Job.py

@@ -76,6 +76,7 @@ if __debug__: # __dev__ not yet available at this point
             self._finished = False
             self._finished = False
 
 
         def run(self):
         def run(self):
+            self.printingBegin()
             while True:
             while True:
                 while self._accum < 100:
                 while self._accum < 100:
                     self._accum += 1
                     self._accum += 1
@@ -87,6 +88,7 @@ if __debug__: # __dev__ not yet available at this point
 
 
                 if self._counter >= 100:
                 if self._counter >= 100:
                     print 'Job.Done'
                     print 'Job.Done'
+                    self.printingEnd()
                     yield Job.Done
                     yield Job.Done
                 else:
                 else:
                     yield None
                     yield None