[iolib-devel] Running io handler periodically

Stelian Ionescu sionescu at cddr.org
Thu May 20 09:13:07 UTC 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/iolib-devel/attachments/20100520/8b96fc38/attachment.sig>


More information about the iolib-devel mailing list