Run the 'waitForThread' operation.
(self, op)
| 102 | time.sleep(op["ms"] / 1000.0) |
| 103 | |
| 104 | def wait_for_thread(self, op): |
| 105 | """Run the 'waitForThread' operation.""" |
| 106 | target = op["target"] |
| 107 | thread = self.targets[target] |
| 108 | thread.stop() |
| 109 | thread.join() |
| 110 | if thread.exc: |
| 111 | raise thread.exc |
| 112 | self.assertFalse(thread.ops) |
| 113 | |
| 114 | def wait_for_event(self, op): |
| 115 | """Run the 'waitForEvent' operation.""" |