[Kde-bindings] Using threads with QtRuby

Uriel uriel at inbox.ru
Fri Feb 5 19:52:03 UTC 2010


Sorry, I've missed one thing.
It should be:
def self.decorate_thread(old_method, *args, &block)
         Qt::Application.instance.send :enable_ruby_threads
         send old_method, *args, &proc{ block.call *args; 
Qt::Application.instance.send :disable_ruby_threads }
end

Now it's possible to pass some arguments to thread's block.



More information about the Kde-bindings mailing list