The openstack_dashboard.openstack.common.threadgroup ModuleΒΆ
- class openstack_dashboard.openstack.common.threadgroup.Thread(thread, group)[source]
Bases: object
Wrapper around a greenthread, that holds a reference to the ThreadGroup. The Thread will notify the ThreadGroup when it has done so it can be removed from the threads list.
- stop()[source]
- wait()[source]
- class openstack_dashboard.openstack.common.threadgroup.ThreadGroup(thread_pool_size=10)[source]
Bases: object
The point of the ThreadGroup classis to:
- keep track of timers and greenthreads (making it easier to stop them when need be).
- provide an easy API to add timers.
- add_dynamic_timer(callback, initial_delay=None, periodic_interval_max=None, *args, **kwargs)[source]
- add_thread(callback, *args, **kwargs)[source]
- add_timer(interval, callback, initial_delay=None, *args, **kwargs)[source]
- stop()[source]
- thread_done(thread)[source]
- wait()[source]