thread_pool: force threads to wakeup on shutdown
commite867a6d1a612baf7975b14f9bffa14ea8b05f35c
authorEric Wong <normalperson@yhbt.net>
Sun, 4 Jul 2010 07:40:58 +0000 (4 07:40 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 4 Jul 2010 07:44:47 +0000 (4 07:44 +0000)
treedaa1c2060286c7ae22232ee3ee2d2e472ed7f8d1
parent7e3de7a12629423e911dae8955e7cc2035d6c401
thread_pool: force threads to wakeup on shutdown

We may use a blocking accept() loop if there is
only a single listener.  In that case threads may
not be able to exit if a SIGQUIT is received, so
force them to run when joining.
lib/rainbows/thread_pool.rb