Remove current thread from the dict of currently running threads.
(self)
| 1079 | self._delete() |
| 1080 | |
| 1081 | def _delete(self): |
| 1082 | "Remove current thread from the dict of currently running threads." |
| 1083 | with _active_limbo_lock: |
| 1084 | del _active[get_ident()] |
| 1085 | # There must not be any python code between the previous line |
| 1086 | # and after the lock is released. Otherwise a tracing function |
| 1087 | # could try to acquire the lock again in the same thread, (in |
| 1088 | # current_thread()), and would block. |
| 1089 | |
| 1090 | def join(self, timeout=None): |
| 1091 | """Wait until the thread terminates. |