Class: Fairy::CBarrier
- Extended by:
- Forwardable
- Defined in:
- lib/fairy/master/c-barrier.rb
Defined Under Namespace
Modules: Factory, Mode Classes: CBarrierAllDataCond, CBarrierBlockCond, CBarrierBuffer, CBarrierCond, CBarrierDataArrivedCond, CBarrierFileBuffer, CBarrierMemoryBuffer, CBarrierMode, CBarrierNodeArrivedCond, CBarrierNodeCreationMode, CBarrierStreamMode
Instance Attribute Summary
Attributes inherited from CIOFilter
Attributes included from CInputtable
Instance Method Summary collapse
- #each_assigned_filter(&block) ⇒ Object
-
#initialize(controller, opts) ⇒ CBarrier
constructor
A new instance of CBarrier.
Methods inherited from CIOFilter
Methods included from CInputtable
Methods inherited from CFilter
#abort_create_node, #add_node, #assgin_number_of_nodes?, #bind_export, #break_create_node, #break_running, #create_and_add_node, #create_import, #create_node, #create_nodes, #def_job_pool_variable, #each_export_by, #each_node, #each_node_exist_only, #handle_exception, #input, #job_pool_dict, #job_pool_variable, #njob_creation_params, #node_class_name, #nodes, #number_of_nodes, #number_of_nodes=, #pool_dict, #postmapping_policy, #start_create_nodes, #start_export, #start_watch_node_status, #update_status, watch_status, watch_status=, #watch_status?
Constructor Details
#initialize(controller, opts) ⇒ CBarrier
Returns a new instance of CBarrier.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fairy/master/c-barrier.rb', line 26 def initialize(controller, opts) super for k, val in opts.dup case k when :mode @mode = CBarrierMode.create(self, val, opts) when :cond @cond = CBarrierCond.create(self, val, opts) when :buffer @buffer = CBarrierBuffer.create(self, val, opts) else end end end |
Instance Method Details
#each_assigned_filter(&block) ⇒ Object
41 42 43 44 |
# File 'lib/fairy/master/c-barrier.rb', line 41 def each_assigned_filter(&block) @mode.wait_exportable @buffer.each_assigned_filter(&block) end |