search for: mavar_send

Displaying 1 result from an estimated 1 matches for "mavar_send".

2007 Jun 20
2
send objet between 2 workers
...om the do_work method. Toto can''t access to a class variable defined before... (undefined method `+'' for nil:NilClass) I suspect that thread is launched when backgroundrb start but the worker not .. My code is : class MonWorker < BackgrounDRb::Worker::RailsBase attr_reader :mavar_send, :mavar_receive @@mavar_send, @@mavar_receive = 0 def do_work(args) trace = Thread.new{t_trace} trace.join end def t_trace while true @@mavar_send += 1 sleep 1 end end Second is I''m trying to call a worker from another to send it an object, is it possible ? job =M...