[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] How to activate read callback when not all data was read



Le 10.04.2012 11:10, Nils Rennebarth a ÃcritÂ:

Or is there something like a idle task, that get called when there is
nothing else to do? Working with timeouts would introduce arbitrary gaps
in command handling, event if there are no other clients that want
work, so I won't go that route. Or does setting a timeout of { 0, 0 }
work?

Yes, use timeout {0, 0} with the lowest available priority (otherwise, it may compete with non-idle tasks).
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.