package devkit

  1. Overview
  2. Docs

Communication from worker threads to the main event loop

type t
val is_available : unit -> bool
  • returns

    if OS has necessary support for this module

val setup : Libevent.event_base -> t
val shutdown : t -> unit

Destructor. All queued events are lost

val callback : t -> (unit -> unit) -> unit

Arrange for callback to be executed in libevent loop, callback should not throw (exceptions are reported and ignored)