Class Ruote::Exp::ReserveExpression
In: lib/ruote/exp/fe_reserve.rb
Parent: FlowExpression

Prevents two process branches from executing at the same time.

  pdef = Ruote.process_definition :name => 'test' do
    concurrence do
      reserve :mutex => 'a' do
        alpha
      end
      reserve 'a' do
        alpha
      end
    end
  end

(Nice and tiny example, turns a concurrence into a sequence…)

Methods

apply   cancel   enter   release_mutex   reply   set_mutex  

Public Instance methods

Protected Instance methods

[Validate]