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.ml | |
| parent | 433f0bc4e5110db09c770022b277c419f8b35f64 (diff) | |
CThread: use a different type for thread friendly in_channels
Diffstat (limited to 'lib/cThread.ml')
| -rw-r--r-- | lib/cThread.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/cThread.ml b/lib/cThread.ml index 19f14637de..7a3f152003 100644 --- a/lib/cThread.ml +++ b/lib/cThread.ml @@ -6,8 +6,10 @@ (* * GNU Lesser General Public License Version 2.1 *) (************************************************************************) +type thread_ic = in_channel + let prepare_in_channel_for_thread_friendly_io ic = - Unix.set_nonblock (Unix.descr_of_in_channel ic) + Unix.set_nonblock (Unix.descr_of_in_channel ic); ic let safe_wait_timed_read fd time = try Thread.wait_timed_read fd time |
