The ceilometer.openstack.common.threadgroup Module

class ceilometer.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 ceilometer.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]

Previous topic

The ceilometer.openstack.common.setup Module

Next topic

The ceilometer.openstack.common.timeutils Module

This Page