oslo_service.threadgroup.Thread(thread, group, link=True)¶Bases: object
Wrapper around a greenthread.
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.
cancel(*throw_args)¶ident¶link(func, *args, **kwargs)¶stop()¶wait()¶oslo_service.threadgroup.ThreadGroup(thread_pool_size=10)¶Bases: object
The point of the ThreadGroup class is to:
add_dynamic_timer(callback, initial_delay=None, periodic_interval_max=None, *args, **kwargs)¶add_thread(callback, *args, **kwargs)¶add_timer(interval, callback, initial_delay=None, *args, **kwargs)¶cancel(*throw_args, **kwargs)¶stop(graceful=False)¶stop function has the option of graceful=True/False.
stop_timers()¶thread_done(thread)¶timer_done(timer)¶wait()¶
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.