On 8/22/12 10:52 AM, Scott Reynolds wrote:
>
> So I meant to try a patch for this and didn't get to it. What I was 
> thinking was a change to the enqueue method. While the pending 
> messages is equal to the ring size, libtask yield. What this should do 
> is cause the delivery task to execute and remove messages from the ring.
>
Is there good documentation for libtask or is the libtask used by 
mongrel2 basically the same as the documentation available at 
http://swtch.com/libtask/ (Russ Cox's libtask)?

I have a vague idea of coroutines, and could try patching it myself.  
The primary issue is trying to grok the scheduling of tasks and knowing 
how execution of tasks is ordered.  As background, I am best familiar 
with the event loop provided by libev.

--Jeff

Reply via email to