[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to wait for both sockets and timers in a coroutine dispatcher.
- From: pansz <pan.shizhu@...>
- Date: Fri, 6 Jan 2012 14:03:10 +0800
On Fri, Jan 6, 2012 at 9:56 AM, Sean Conner <sean@conman.org> wrote:
>
> I've done that. Below is the main code from my program. I have three
> queues I maintain, a run queue (g_trun), a wait queue (g_twait, for those
> coroutines waiting on socket IO) and a sleep queue (g_tsleep).
This is helpful! Thanks, I'll separate into three queue .