search for: second_work

Displaying 2 results from an estimated 2 matches for "second_work".

Did you mean: second_worker
2007 Jun 20
2
send objet between 2 workers
...@@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 =MiddleMan.worker(:second_worker) doesn''t work in my first worker. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070621/9ef42cbe/attachment.html
2007 Jan 22
1
MiddleMan behavior
i found some questions and answers on mailing lists but there is still a problem - when i want to create new worker from within a worker - ::BackgrounDRb::MiddleMan.new_worker(:class => :second_worker, :args => {:id=>2, :text=>"slave"}) works but when i want to get reference to that object: ::BackgrounDRb::MiddleMan.worker(@second) yields: NoMethodError: undefined method `worker'' for BackgrounDRb::MiddleMan:Class from (drbunix:///tmp/backgroundrbunix_...