xepoll: cleanup acceptor logic
commite64e2e0045d63c4edd291839febba978534be652
authorEric Wong <normalperson@yhbt.net>
Sun, 8 May 2011 07:22:36 +0000 (8 07:22 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 8 May 2011 07:22:36 +0000 (8 07:22 +0000)
tree32d0435c385f3ac932415bae609e4c13f8fcaed1
parent07a0bee9dd6f2c366d11284b7e9ab09d66b411e4
xepoll: cleanup acceptor logic

worker_yield is safer than setting a threshold with multiple
acceptors when thread limits are hit.  Also, avoid sleep +
Thread#run since it's potentially racy if threads are extremely
unfairly scheduled.

Same things applied to xepoll_thread_spawn.
lib/rainbows/xepoll/client.rb