Class Task

Summary

Package:
threads
File:
thread.icn
Methods:
do_work, exec, exec_map, exec_reduce, init, is_done, reduce, runners, set_args, set_caller, signal, wait

Fields:
active_threads, args, caller, chunk_size, cv_caller, done, func, nthread, reduce_func, result_list, tttype

Source code.

Details
Constructor

Task(func, r_func, ar, n)

Methods:

do_work(args)


exec()


exec_map()


exec_reduce()


init(func, r_func, args, n:1, chnk_size:1)


is_done()


reduce(rslt_lst)


runners()


set_args(args)


set_caller(c)


signal()


wait()


Fields:
active_threads -- the threads assigned to this task

args

caller

chunk_size --

cv_caller --

done -- set when done

func -- proc, what I'm supposed to do

nthread -- number of threads asked for

reduce_func -- proc, how do I combine results

result_list

tttype -- thread task type , repeat, divide, chunk


This page produced by UniDoc on 2021/04/15 @ 23:59:54.