diff options
Diffstat (limited to 'lib/rainbows')
-rw-r--r-- | lib/rainbows/sync_close.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/rainbows/sync_close.rb b/lib/rainbows/sync_close.rb index 75f119e..8738cae 100644 --- a/lib/rainbows/sync_close.rb +++ b/lib/rainbows/sync_close.rb @@ -16,6 +16,14 @@ class Rainbows::SyncClose @body.respond_to?(m) end + def readpartial(*args) + @body.readpartial(*args) + end + + def read(*args) + @body.read(*args) + end + def to_path @body.to_path end @@ -31,7 +39,7 @@ class Rainbows::SyncClose # called by the writer thread to wake up the original thread (in #initialize) def close @body.close - ensure - @mutex.synchronize { @cv.signal } + ensure + @mutex.synchronize { @cv.signal } end end |