The heat.openstack.common.threadgroup Module

class heat.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 heat.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_thread(callback, *args, **kwargs)[source]
add_timer(interval, callback, initial_delay=None, *args, **kwargs)[source]
stop()[source]
thread_done(thread)[source]
wait()[source]

This Page