PreviousUpNext

14.4.7  Cpu_Bound_Task_Pthreads

The standard library Cpu_Bound_Task_Pthreads api defines access to pthreads which offload CPU-intensive computations from the main threadkit pthread.

The Cpu_Bound_Task_Pthreads api is implemented by the cpu_bound_task_pthreads package.

The Cpu_Bound_Task_Pthreads api source code is in src/lib/std/src/pthread/cpu-bound-task-pthreads.api.

See also: Io_Bound_Task_Pthreads.

See also: Io_Wait_Pthread.

The above information is manually maintained and may contain errors.

api {
    get_count_of_running_pthreads : Void -> Int;
    start : String -> Int;
    Do_Stop  = {reply:Void -> Void,  who:String};
    stop : Do_Stop -> Void;
    Do_Echo  = {reply:String -> Void,  what:String};
    echo : Do_Echo -> Void;
    do : (Void -> Void) -> Void;
};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext