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 |
ThradPool class
Definition at line 82 of file thread_pool.py.
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.
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.
def rospeex_core.sr.base.thread_pool.ThreadPool.end | ( | self | ) |
end woker thread @return: None
Definition at line 142 of file thread_pool.py.
def rospeex_core.sr.base.thread_pool.ThreadPool.get_finish_task | ( | self, | |
wait = True |
|||
) |
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.
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.