Displaying 1 result from an estimated 1 matches for "snchroniz".
Did you mean:
snchronize
2006 Jul 12
1
When to use Mutex::synchronize?
...onnection? Will I get
unexpected results? For instance, if 500 people access
www.somedomain.com/controller/method which calls that method in the
backgroundrb process will it screw everything up?
Basically do I need to wrap that in a synchronize method? Like this:
def some_method
@mutex_obj.snchronize do
SomeModel.find_all each do |obj|
obj.some_count += 1
obj.save!
end
end
end
Thanks a lot for your help.
Thank You,
Ben Johnson
E: bjohnson at contuitive.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb...