Class: CPEE::ExCallback

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

Overview

{{{

Instance Method Summary collapse

Instance Method Details

#responseObject



104
105
106
107
108
109
110
111
112
113
# File 'lib/cpee/implementation.rb', line 104

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