<div>Hi Don,</div>
<div> </div>
<div> Sorry ..I wasn't clear enough.I am trying to determine from the Haskell FFI doc what datatype to use in order to model C's "void *", e.g. for mmap <a href="http://www.opengroup.org/onlinepubs/000095399/functions/mmap.html">
http://www.opengroup.org/onlinepubs/000095399/functions/mmap.html</a></div>
<div> </div>
<div>Regards, Vasili</div>
<div> <br><br> </div>
<div><span class="gmail_quote">On 1/16/08, <b class="gmail_sendername">Don Stewart</b> <<a href="mailto:dons@galois.com">dons@galois.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">vigalchin:<br>> Hello,<br>><br>> In the ghc libraries directory I can't find the Haskell
<br>> .hs/.lhsthat implements Posix select. ?? I found Select.c.<br><br>In Control.Concurrent<br><br> forkIO<br> threadDelay<br> threadWaitRead<br> threadWaitWrite<br><br>The thread primitives are implemented in terms of select, and give you a
<br>cleaner interface.<br><br>Also, with Control.Concurrent.STM.<br><br> atomically<br> orElse<br> retry<br><br>You can have threads wait on one of a series of alternative events.<br>Using STM, you'll be able to compose blocks of such code, which you
<br>can't do with select.<br><br>-- Don<br></blockquote></div><br>