Debian Codegraph @

lib/cml/core-cml/io-manager.sig

raw
1 (* io-manager.sig
2 * Ported to MLton threads.
3 *)
4
5 (* io-manager.sml
6 *
7 * COPYRIGHT (c) 1995 AT&T Bell Laboratories.
8 * COPYRIGHT (c) 1989-1991 John H. Reppy
9 *
10 * This is a generic I/O manager for CML. It uses the OS.IO polling
11 * mechanism.
12 * NOTE: it currently does not work if more than one thread blocks on the same
13 * descriptor.
14 *)
15 signature IO_MANAGER =
16 sig
17 type iodesc
18 type poll_desc
19 type poll_info
20 datatype preempt_type = READIED | INQUEUE of poll_desc list | EMPTYQUEUE
21
22 val ioEvt: poll_desc -> poll_info Event.event
23
24 val preempt: unit -> preempt_type
25 end