3590:5280e37405b8 | 3591:2f2a4a76dd22 |
---|---|
145 except AssertionError: | 145 except AssertionError: |
146 pass | 146 pass |
147 | 147 |
148 def setCurrentThread(self, id): | 148 def setCurrentThread(self, id): |
149 """ | 149 """ |
150 Private method to set the current thread. | 150 Public method to set the current thread. |
151 | 151 |
152 @param id the id the current thread should be set to. | 152 @param id the id the current thread should be set to. |
153 """ | 153 """ |
154 try: | 154 try: |
155 self.lockClient() | 155 self.lockClient() |
175 | 175 |
176 self.setCurrentThread(None) | 176 self.setCurrentThread(None) |
177 | 177 |
178 def set_quit(self): | 178 def set_quit(self): |
179 """ | 179 """ |
180 Private method to do a 'set quit' on all threads. | 180 Public method to do a 'set quit' on all threads. |
181 """ | 181 """ |
182 try: | 182 try: |
183 locked = self.lockClient(False) | 183 locked = self.lockClient(False) |
184 try: | 184 try: |
185 for key in self.threads: | 185 for key in self.threads: |