From kde-bindings Fri Feb 05 19:52:03 2010 From: Uriel Date: Fri, 05 Feb 2010 19:52:03 +0000 To: kde-bindings Subject: Re: [Kde-bindings] Using threads with QtRuby Message-Id: <4B6C76E3.7090000 () inbox ! ru> X-MARC-Message: https://marc.info/?l=kde-bindings&m=126539958908926 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. _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings