Library
Module
Module type
Parameter
Class
Class type
The Lwt variation of Cachet implies a point of cooperation (Lwt.pause
) as soon as the syscall map
is called. In other words, a task developed with Cachet_lwt will make itself available to be rescheduled if we internally call map
instead of using the cache.
In the event that the functions below were to use the cache, they would retain the exclusive right to execute and would not allow any cooperation points to appear.
Such an approach increases the task's availability if it does I/O in cooperation with other tasks that would also like to do I/O.
val load : 'fd Cachet.t -> ?len:int -> int -> Cachet.slice option Lwt.t
get_int8 t logical_address
is t
's signed 8-bit integer starting at byte index logical_address
.
get_uint8 t logical_address
is t
's unsigned 8-bit integer starting at byte index logical_address
.
val next : 'fd Cachet.t -> Cachet.slice -> Cachet.slice option Lwt.t