mirror of
https://github.com/python/cpython.git
synced 2025-10-13 18:33:34 +00:00
Close #12028: Make threading._get_ident() public, rename it to
threading.get_ident() and document it. This function was used by _thread.get_ident().
This commit is contained in:
parent
d976098e3b
commit
2a12974bca
12 changed files with 50 additions and 39 deletions
|
@ -30,7 +30,7 @@ def task(N, done, done_tasks, errors):
|
|||
except Exception as e:
|
||||
errors.append(e.with_traceback(None))
|
||||
finally:
|
||||
done_tasks.append(thread.get_ident())
|
||||
done_tasks.append(threading.get_ident())
|
||||
finished = len(done_tasks) == N
|
||||
if finished:
|
||||
done.set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue