(self)
| 627 | self._thread_sharing_count += 1 |
| 628 | |
| 629 | def dec_thread_sharing(self): |
| 630 | with self._thread_sharing_lock: |
| 631 | if self._thread_sharing_count <= 0: |
| 632 | raise RuntimeError( |
| 633 | "Cannot decrement the thread sharing count below zero." |
| 634 | ) |
| 635 | self._thread_sharing_count -= 1 |
| 636 | |
| 637 | def validate_thread_sharing(self): |
| 638 | """ |
no outgoing calls