<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-05-16 21:10 GMT+02:00 Gary Byers <span dir="ltr"><<a href="mailto:gb@clozure.com" target="_blank">gb@clozure.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<tt>Note that swank-helper uses the "select" system call which tries
to wait until<br>
some members of some sets of Unix file descriptors are ready to do
some kinds of I/O<br>
Some Windows C libraries may try to emulate some parts of what
select tries to<br>
do, but IIRC CCL on Windows mostly tries to do I/O without
involving any C libraries.<br>
The closest Windows analogue to select() might be
WaitForMultipleObjects, and I don't<br>
believe that you can generally wait for Windows file handles
unless you know a lot<br>
about what I/O operations are awaiting completion on that handle.<br>
<br>
More generally, if swank-helper doesn't work on Windows, that is
not surprising.<br>
I don't know whether or not it could be made to work on Windows,
or what would<br>
be involved in that.<br>
<br></tt></div></blockquote><div><br></div><div>In swank-helper/serve-event function, there is this call to #_select that I suppose will be resolved to the select() function</div><div>from winsock2. The main difference between this select() and the Unix one is that the Unix one works with</div><div>both network sockets and file sockets whereas it does work only on network sockets for Windows (IIRC).</div><div><br></div><div>When I tried swank-helper, it went into a loop consuming 100% CPU.</div><div><br></div><div>BTW, from what I tried, neither slime + repl nor sly are able to reuse the same thread for C-x C-e.</div><div>Several calls in a row on (random 100) always return the same value for both, at least under Windows.</div><div><br></div><div>Fabrice</div><div><br></div></div>
</div></div>