Class: Thrift::TBaseStream

Inherits:
Object
  • Object
show all
Defined in:
lib/thrift/base_stream.rb

Direct Known Subclasses

TBidiStream, TInboundStream, TOutboundStream

Instance Method Summary collapse

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

#readyObject



14
15
16
17
# File 'lib/thrift/base_stream.rb', line 14

def ready
  @ready = true
  @cond.broadcast
end