1 (* Copyright (C) 2009 Matthew Fluet.
2 * Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
3 * Jagannathan, and Stephen Weeks.
4 * Copyright (C) 1997-2000 NEC Research Institute.
6 * MLton is released under a BSD-style license.
7 * See the file MLton-LICENSE for details.
10 signature MLTON_SIGNAL =
20 val handler: (MLtonThread.Runnable.t -> MLtonThread.Runnable.t) -> t
22 val isDefault: t -> bool
23 val isIgnore: t -> bool
24 val simple: (unit -> unit) -> t
32 val allBut: signal list -> t
34 val getBlocked: unit -> t
35 val isMember: t * signal -> bool
37 val setBlocked: t -> unit
38 val some: signal list -> t
39 val unblock: t -> unit
42 val getHandler: t -> Handler.t
43 val handled: unit -> Mask.t
46 val setHandler: t * Handler.t -> unit
47 (* suspend m temporarily sets the signal mask to m and suspends until an
48 * unmasked signal is received and handled, and then resets the mask.
50 val suspend: Mask.t -> unit