-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/13/2014 08:13 AM, Martin Sustrik wrote:
> Hi,
> 
> Is there a way to raise custom events via libuv?
> 
> What I am looking for is basically the same thing as uv_idle, but
> with normal priority, so that it's not postponed indefinitely in
> high-load situations.
> 
> Ideas?
> 

libuv doesn't have a concept of 'priority' for handles. Despite the
(misleading) name, uv_idle handles are run on each loop iteration,
until stopped. A particularity of idle handles is that as long as
there is one of them active, the loop won't clock for i/o, it will do
a zero-timeout-poll instead.


Cheers,

- -- 
Saúl Ibarra Corretgé
bettercallsaghul.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBAgAGBQJTccJFAAoJEEEOVVOum8BZWSYP/1Y7Za05xKk3AY0dHlIhwZ19
1rcZ17qjVekkAvIdFP9T3mEFi+4fqhvWLs6RiO3eCLJ6Hg3qbX8nvBe0NgCEN2Dm
ZX5tPtouzfDKCT6ZgPtF6uRw2Vys1WPojL9qamfmIQMSf5MaP1lTRBOCDp7odtaS
CWpNr9p208x/rJuqvGLjw9DeeGgw9Ihpq3RCO08atSE1HntTR4RYzKA1JuxurRVv
5d6T2D3cQIiuF6WflTWuX5aiqdrOJjo71bPlQSRC1sTmoS+kRY+mAuKVOeH+fNx9
SW62Om2i8cDS7BnjXgEKwoLxmtuhJhvZ1KzZB5U1uoGx8MSbP61Jc//V7htxiQa7
BPsZNQJpeA8ocqqcrxi9xoxGfOqE/WdTIJpGtbO4zHVIseI99bHpIPmUk6JbIcwE
UiwcUKM5MG1c2PDrCJqkbtU/M93zuxzL0JqE/CjL2XOfyA1Lz895IEh3N7GTsUwo
uQa3/ZF28hqZGhskeKZUSku9NuHq8ALkrxnUrwm0fg+km9VosDOGxLwC3QZZGYvT
jXb1TUAe4dD6cFk4Yw+7rPV2OVVDDQh7iMFVU01HMVzqpd5DNAJjWNBn0edey/zo
fUyJKe4BxtBYI+bHfgx4rXx2MJ2BnmUKprniCQK5NFpmpDK00evQ8T8/CMxmjHx3
YKEYp9+AtLGYncrteviq
=cgu0
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to