[Ecls-list] Make CL:SLEEP enter alertable wait state on win32

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Tue Aug 19 11:41:26 UTC 2008


On Wed, Aug 13, 2008 at 12:53 AM, Samium Gromoff
<_deepfire at feelingofgreen.ru> wrote:
> The patch below makes the CL:SLEEP's wait "alertable", using the
> win32-speak. [...]
> A proper patch, I guess, would differ in two aspects -- first, it would
> change other functions using non-alertable win32 calls to their alertable
> analogs (if there are any), and second, probably more importantly,
> it would ensure that CL:SLEEP would sleep no less than asked, which,
> in the current incarnation, isn't guaranteed.

Hi Samium, I understand the utility of using SleepEx, but it eludes me
what you say about Sleep currently sleeping _less_ than it is asked.

Sleep, if I read it correctly in
http://msdn.microsoft.com/en-us/library/ms686298(VS.85).aspx has the
same warranties as SleepEx, though the latter may return _earlier_ if
some of the signalling conditions is met.

If this is true, and except for the signals Sleep and SleepEx would
sleep for the same period of time, then I see no need to add new
semantics to CL:SLEEP which is not existent in other ports, or is
being implemented in a different form (SERVE-EVENT!!!).

Juanjo

-- 
Instituto de Física Fundamental
CSIC, Serrano, 113, Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com


More information about the ecl-devel mailing list