|
From: Vladimir T. <vtz...@gm...> - 2010-10-28 17:27:15
|
On 10/28/10, Sam Steingold <sd...@gn...> wrote: > maybe we should implement this loop in C for POSIX? > this would save us a lot of time answering questions like this. > (and also make clisp more robust and cross-platform: same behavior on > posix and woe32 - although it appears this in this case win32 really > wins while posix loses). Let's do what you suggested: add :predicate argument to exemption-wait and loop over it in C. I think we may make it optional and if not supplied - current behavior will remain (mostly cause people are used to pthreads model in which spurious wakeups are possible). If you agree - I'll implement it (and document it together with per thread timing) these days. |