thread_timeout: avoid a threading bug under 1.9
commit886e0a006d9e8e9c586beae28ed4dc5097064e90
authorEric Wong <normalperson@yhbt.net>
Mon, 20 Dec 2010 03:41:48 +0000 (20 03:41 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 20 Dec 2010 03:42:55 +0000 (20 03:42 +0000)
tree6aa8c96e039e27c6b41a5ed1cd685b8252448723
parent7e2bb251228a30c0d4e66029b20bbbf85bc99a09
thread_timeout: avoid a threading bug under 1.9

Because of the lack of GVL-releasing syscalls in this branch
of the thread loop, we need Thread.pass to ensure other threads
get scheduled appropriately under 1.9.  This is likely a threading
bug in 1.9 that warrants further investigation when we're in a
better mood.
lib/rainbows/thread_timeout.rb