A race problem about select in a small time window
Alan Bateman
Alan.Bateman at oracle.com
Tue Mar 12 05:42:47 PDT 2013
On 12/03/2013 09:58, Sean Chou wrote:
> The code looks fine, I tried with the test case in first mail and it
> passed.
> I'll try to run more testcases which need one or two days.
> It's a sudden you removed the Updator layer.
Thanks, in the mean-time we can do the review here.
As regards removing Updator then this is part of the problem as it's too
fragile to map to opcodes when queuing the change. Also it doesn't take
account of the possibility of that interestOps might queue a change at
just around the time that the channel is being removed. The new
implementation also avoids needing to create an Updator for each change
to the interest ops.
-Alan
More information about the nio-dev
mailing list