[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <firstname.lastname@example.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 .