diff options
author | Tong Li <litong01@us.ibm.com> | 2013-05-23 16:39:31 -0400 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-05-29 19:09:49 +0000 |
commit | 874e0e4427b80e1b15b74a1557b73ba9d61443ca (patch) | |
tree | 321df2707e8eab2441f19ef94f270bc9216ee6d0 /swiftclient/https_connection.py | |
parent | 7e84b69291efbc07be6ced17b24ffa42efdc67c0 (diff) | |
download | python-swiftclient-874e0e4427b80e1b15b74a1557b73ba9d61443ca.tar.gz |
remove busy-wait so that swift client won't use up all CPU cycles
The current implementation uses busy-wait and checking flags to
communicate between threads. It wastes a lot of CPU powers. With
python 2.6 is required for Swift, the communication between
threads should now be using queue and signal mechanisms. This
patch removed the busy-wait loops and use queue and queue join
for threads coordination which will not consume CPU cycles if
a thread is blocked.
Change-Id: I648cd637a92a159d5c13baa83f357cee2dfe7937
Diffstat (limited to 'swiftclient/https_connection.py')
0 files changed, 0 insertions, 0 deletions