Module Linux_ext.Eventfd
module Flags : sig ... endtype t= private Core__.Core_unix.File_descr.t
val compare : t -> t -> intval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val create : (?flags:Flags.t -> Core__.Import.Int32.t -> t) Core__.Import.Or_error.tcreate ?flags initcreates a new event file descriptor withinitas the counter's initial value. With Linux 2.6.26 or earlier,flagsmust beempty.
val read : t -> Core__.Import.Int64.tread twill block untilt's counter is nonzero, after which its behavior depends on whethertwas created with theFlags.semaphoreflag set. If it was set, thenread twill return1and decrementt's counter. If it was not set, thenread twill return the value oft's counter and set the counter to0. The returned value should be interpreted as an unsigned 64-bit integer.In the case that
twas created with theFlags.nonblockflag set, this function will raise a Unix error with the error codeEAGAINorEWOULDBLOCK, instead of blocking.
val write : t -> Core__.Import.Int64.t -> unitwrite t vwill block untilt's counter is less than the max value of auint64_t, after which it will incrementt's counter byv, which will be interpreted as an unsigned 64-bit integer.In the case that
twas created with theFlags.nonblockflag set, this function will raise a Unix error with the error codeEAGAINorEWOULDBLOCK, instead of blocking.
val to_file_descr : t -> Core__.Core_unix.File_descr.t