introduce worker_yield method
commit94b848a8f9120bce8b0abd776b1a9b7e2f4fa30d
authorEric Wong <normalperson@yhbt.net>
Mon, 27 Dec 2010 02:43:44 +0000 (27 02:43 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 27 Dec 2010 02:43:44 +0000 (27 02:43 +0000)
tree672d1f677360e849bb4bf5200dc87ec266f701dc
parenta310302708faa19042282e94525544cfbb23eba5
introduce worker_yield method

This lets Rainbows! yield the current worker process
when busy in the hopes another worker will pick up the
slack.  We can also override this for the single worker
process case later if people care enough.
lib/rainbows.rb
lib/rainbows/thread_spawn.rb
lib/rainbows/worker_yield.rb [new file with mode: 0644]
lib/rainbows/writer_thread_spawn/client.rb