summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-01-11 19:59:46 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-01-11 19:59:46 (GMT)
commit5cee47f321d5c2efd37349cc9e948b59f53e6fbf (patch)
tree2661293bc9f4d87480e7459e8cf9886705ad5228 /Lib
parenta3e8f3d85fc0ae6c6f5981c3f9fc34b6d61ea49c (diff)
downloadcpython-5cee47f321d5c2efd37349cc9e948b59f53e6fbf.zip
cpython-5cee47f321d5c2efd37349cc9e948b59f53e6fbf.tar.gz
cpython-5cee47f321d5c2efd37349cc9e948b59f53e6fbf.tar.bz2
Add entry for Barrier objects.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/threading.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 392ad14..e29ee40 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -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