[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Alternative Hashtbl and lwt yield-like functionality questions
yeap this one worked. by the way the delay to switch thread is seems t be minimum and no impact on the performance of the code. :D On 14 December 2011 13:52, Raphael Proust <raphlalou@xxxxxxxxx> wrote: > > Lwt_unix.yield yields. > > If you are running in mirage (as I suspect you do) you can use > Os.Time.sleep with 0. as argument (in the standard Lwt (and all the > versions I know of) yield is just "sleep 0."). > > Ideally you can just make the function available through the interface > file time.mli since it is already defined in time.ml. -- Charalampos Rotsos PhD student The University of Cambridge Computer Laboratory William Gates Building JJ Thomson Avenue Cambridge CB3 0FD Phone: +44-(0) 1223 767032 Email: cr409@xxxxxxxxxxxx
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |