Class: Fairy::CBarrier::CBarrierCond

Inherits:
Object
  • Object
show all
Extended by:
Factory
Includes:
Mode
Defined in:
lib/fairy/master/c-barrier.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Factory

create, extended, init_fact, register_mode

Methods included from Mode

#initialize

Class Method Details

.create(bbarrier, mode, opts = nil) ⇒ Object



138
139
140
141
142
143
144
145
# File 'lib/fairy/master/c-barrier.rb', line 138

def self.create(bbarrier, mode, opts=nil)
  if mode.kind_of?(BlockSource)
    opts[:BLOCK_SOURCE] = mode
    super(bbarrier, :BLOCK_COND, opts)
  else
    super(bbarrier, mode, opts)
  end
end

Instance Method Details

#wait_condObject



147
148
149
# File 'lib/fairy/master/c-barrier.rb', line 147

def wait_cond
  ERR::Raise ERR::NoImpliment, "wait_cond"
end