20 May
2010
20 May
'10
9:13 a.m.
On Mon, 2010-05-17 at 22:24 +0400, Nikolay V. Razbegaev wrote:
Hello!
Is it possible to make io handler, that will be running periodically, i.e. not every time when io will be possible? `iomux:set-io-handler' have `:timeout' &key parameter, but, as i understand, it is poll timeout.
Of course I cat call `sleep' inside io handler body, but it will be freeze all other handlers in this thread too. So, can I run `iomux:event-base' io handler periodically w/o `sleep' dirty hack?
You can add a timer: the function is iolib.multiplex:add-timer -- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur. http://common-lisp.net/project/iolib