Class: CPEE::ExCallback

Inherits:
Riddl::Implementation
  • Object
show all
Defined in:
lib/cpee/implementation.rb

Overview

{{{

Instance Method Summary collapse

Instance Method Details

#responseObject



90
91
92
93
94
95
96
97
98
99
# File 'lib/cpee/implementation.rb', line 90

def response
  controller = @a[0]
  id = @r[0].to_i
  callback = @r[2]
  controller[id].mutex.synchronize do
    if controller[id].callbacks.has_key?(callback)
      controller[id].callbacks[callback].callback(@p,@h)
    end
  end
end