diff options
| author | Enrico Tassi | 2014-12-11 14:27:46 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2014-12-17 15:05:04 +0100 |
| commit | 2d66c7d508f6bd198969012241082e34a5b6047c (patch) | |
| tree | 33b632f3118c8166a05211aa5a05375268fb78a3 /lib/cThread.mli | |
| parent | 433f0bc4e5110db09c770022b277c419f8b35f64 (diff) | |
CThread: use a different type for thread friendly in_channels
Diffstat (limited to 'lib/cThread.mli')
| -rw-r--r-- | lib/cThread.mli | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/cThread.mli b/lib/cThread.mli index ada492dd40..d68a392d1e 100644 --- a/lib/cThread.mli +++ b/lib/cThread.mli @@ -14,11 +14,13 @@ * an unbounded wait has the same problem. *) (* Use only the following functions on the channel *) -val prepare_in_channel_for_thread_friendly_io : in_channel -> unit -val thread_friendly_input_value : in_channel -> 'a +type thread_ic +val prepare_in_channel_for_thread_friendly_io : in_channel -> thread_ic + +val thread_friendly_input_value : thread_ic -> 'a val thread_friendly_read : - in_channel -> string -> off:int -> len:int -> int + thread_ic -> string -> off:int -> len:int -> int val thread_friendly_really_read : - in_channel -> string -> off:int -> len:int -> unit -val thread_friendly_really_read_line : in_channel -> string + thread_ic -> string -> off:int -> len:int -> unit +val thread_friendly_really_read_line : thread_ic -> string |
