Class: DTAS::PipeNB

Inherits:
Pipe
  • Object
show all
Defined in:
lib/dtas/pipe.rb

Overview

for non-blocking sinks, this avoids extra fcntl(…, F_GETFL) syscalls We don’t need fcntl at all for splice/tee in Linux For non-Linux, we write_nonblock/read_nonblock already call fcntl() behind our backs, so there’s no need to repeat it.

Instance Attribute Summary

Attributes inherited from Pipe

#sink

Attributes included from WritableIter

#on_writable

Instance Method Summary collapse

Methods inherited from Pipe

new, #pipe_size, #pipe_size=

Methods included from WritableIter

#writable_iter, #writable_iter_init

Instance Method Details

#nonblock?Boolean

:nodoc:

Returns:

  • (Boolean)


36
37
38
# File 'lib/dtas/pipe.rb', line 36

def nonblock?
  true
end