This module allows to mix preemptive threads with Lwt
cooperative threads. It maintains an extensible pool of preemptive
threads to which you can detach computations.
init min max log
initialises this module. i.e. it launches the
minimum number of preemptive threads and starts the dispatcher.
simple_init ()
does a simple initialization. i.e. with
default parameters if the library is not yet initialised.
Note: this function is automatically called detach.
get_bounds ()
returns the minimum and the maximum number of
preemptive threads.
set_bounds (min, max)
set the minimum and the maximum number
of preemptive threads.
Sets the size of the waiting queue, if no more preemptive threads are available. When the queue is full, detach will sleep until a thread is available.
Returns the size of the waiting queue, if no more threads are available