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.

Thread.stop()[source]
Thread.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.
ThreadGroup.add_dynamic_timer(callback, initial_delay=None, periodic_interval_max=None, *args, **kwargs)[source]
ThreadGroup.add_thread(callback, *args, **kwargs)[source]
ThreadGroup.add_timer(interval, callback, initial_delay=None, *args, **kwargs)[source]
ThreadGroup.stop()[source]
ThreadGroup.thread_done(thread)[source]
ThreadGroup.wait()[source]

Previous topic

The openstack_dashboard.openstack.common.context Module

Next topic

The openstack_dashboard.openstack.common Module

This Page