mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Add entry for Barrier objects.
This commit is contained in:
parent
a3e8f3d85f
commit
5cee47f321
3 changed files with 46 additions and 5 deletions
|
@ -17,12 +17,11 @@ from collections import deque
|
|||
# with the multiprocessing module, which doesn't provide the old
|
||||
# Java inspired names.
|
||||
|
||||
|
||||
# Rename some stuff so "from threading import *" is safe
|
||||
__all__ = ['active_count', 'Condition', 'current_thread', 'enumerate', 'Event',
|
||||
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread',
|
||||
'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Thread', 'Barrier',
|
||||
'Timer', 'setprofile', 'settrace', 'local', 'stack_size']
|
||||
|
||||
# Rename some stuff so "from threading import *" is safe
|
||||
_start_new_thread = _thread.start_new_thread
|
||||
_allocate_lock = _thread.allocate_lock
|
||||
_get_ident = _thread.get_ident
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue