Class: CPEE::ExCallback

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

Overview

{{{

Instance Method Summary collapse

Instance Method Details

#responseObject



80
81
82
83
84
85
86
87
88
89
# File 'lib/cpee/implementation.rb', line 80

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)
    end
  end  
end