Class: Thrift::TBaseStream
- Inherits:
-
Object
- Object
- Thrift::TBaseStream
- Defined in:
- lib/thrift/base_stream.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(iprot, oprot, name, seqid) ⇒ TBaseStream
constructor
A new instance of TBaseStream.
- #ready ⇒ Object
Constructor Details
#initialize(iprot, oprot, name, seqid) ⇒ TBaseStream
Returns a new instance of TBaseStream.
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/thrift/base_stream.rb', line 3 def initialize(iprot, oprot, name, seqid) @iprot = iprot @oprot = oprot @name = name @seqid = seqid @closed = false @ready = false @mutex = Mutex.new @cond = ConditionVariable.new end |
Instance Method Details
#ready ⇒ Object
14 15 16 17 |
# File 'lib/thrift/base_stream.rb', line 14 def ready @ready = true @cond.broadcast end |