refactor graceful shutdowns again, harder
commita764983fccd6cce64043d76e09a5e1718e7f8fd6
authorEric Wong <normalperson@yhbt.net>
Sun, 18 Oct 2009 05:42:56 +0000 (17 22:42 -0700)
committerEric Wong <normalperson@yhbt.net>
Sun, 18 Oct 2009 05:42:56 +0000 (17 22:42 -0700)
treecd6f730c5b93c584a7cdda57079b318d99bb3120
parent71a1cf90ce16ce6951f1ce76fcea98b13bc54576
refactor graceful shutdowns again, harder

We use the "G" global constant from the Rev model everywhere
to simplify things a little.
Test cases are more consistent now, too.
lib/rainbows.rb
lib/rainbows/base.rb
lib/rainbows/rev.rb
lib/rainbows/revactor.rb
lib/rainbows/thread_pool.rb
lib/rainbows/thread_spawn.rb
t/lib-graceful.sh [new file with mode: 0644]
t/t1002-thread-pool-graceful.sh
t/t2002-thread-spawn-graceful.sh
t/t3002-revactor-graceful.sh
t/t4002-rev-graceful.sh