Return a list of all Thread objects currently alive. The list includes daemonic threads, dummy thread objects created by current_thread(), and the main thread. It excludes terminated threads and threads that have not yet been started.
()
| 1511 | return list(_active.values()) + list(_limbo.values()) |
| 1512 | |
| 1513 | def enumerate(): |
| 1514 | """Return a list of all Thread objects currently alive. |
| 1515 | |
| 1516 | The list includes daemonic threads, dummy thread objects created by |
| 1517 | current_thread(), and the main thread. It excludes terminated threads and |
| 1518 | threads that have not yet been started. |
| 1519 | |
| 1520 | """ |
| 1521 | with _active_limbo_lock: |
| 1522 | return list(_active.values()) + list(_limbo.values()) |
| 1523 | |
| 1524 | |
| 1525 | _threading_atexits = [] |
searching dependent graphs…