Public Member Functions | Private Attributes
rospeex_core.sr.base.thread_pool.ThreadPool Class Reference

List of all members.

Public Member Functions

def __init__
def add_request
def check_completion
def check_finish_task
def end
def get_finish_task
def wait_completion

Private Attributes

 _finish_tasks
 _tasks
 _workers

Detailed Description

ThradPool class 

Definition at line 82 of file thread_pool.py.


Constructor & Destructor Documentation

def rospeex_core.sr.base.thread_pool.ThreadPool.__init__ (   self,
  num_thread 
)
init class
@param num_thread: number of worker thread

Definition at line 84 of file thread_pool.py.


Member Function Documentation

def rospeex_core.sr.base.thread_pool.ThreadPool.add_request (   self,
  request,
  args,
  kwargs 
)
add request
@param request:
@param args:
@param kwargs:
@return: None

Definition at line 94 of file thread_pool.py.

check completion
@return: True for complete tasks / False for NOT complete tasks

Definition at line 113 of file thread_pool.py.

@return: None

Definition at line 134 of file thread_pool.py.

end woker thread
@return: None

Definition at line 142 of file thread_pool.py.

get finish task
@return: finish task

Definition at line 121 of file thread_pool.py.

wait completion
@return: None

Definition at line 107 of file thread_pool.py.


Member Data Documentation

Definition at line 86 of file thread_pool.py.

Definition at line 86 of file thread_pool.py.

Definition at line 86 of file thread_pool.py.


The documentation for this class was generated from the following file:


rospeex_core
Author(s): Komei Sugiura
autogenerated on Thu Jun 6 2019 18:53:10