PreviousUpNext

14.4.34  Io_Bound_Task_Hostthreads

The standard library Io_Bound_Task_Hostthreads api defines access to hostthreads which offload I/O-intensive computations from the main threadkit hostthread (or, more generally, any slow operations which are not CPU-bound).

The Io_Bound_Task_Hostthreads api is implemented by the io_bound_task_hostthreads package.

The Io_Bound_Task_Hostthreads api source code is in src/lib/std/src/hostthread/io-bound-task-hostthreads.api.

See also: Cpu_Bound_Task_Hostthreads.

See also: Io_Wait_Hostthread. The above information is manually maintained and may contain errors.

api {
    get_count_of_live_hostthreads : Void -> Int;
    change_number_of_server_hostthreads_to : String -> Int -> Void;
    Do_Echo  = {reply:String -> Void, what:String};
    echo : Do_Echo -> Void;
    do : (Void -> Void) -> Void;
    is_doing_useful_work : Void -> Bool;
    Do_Stop  = {per_who:String, reply:Void -> Void};
    Request  = DO_ECHO Do_Echo | DO_STOP Do_Stop | DO_TASK Void -> Void;
    mutex : hostthread::Mutex;
    condvar : hostthread::Condvar;
    external_request_queue : Ref(List(Request ) );};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext