[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: Re: [Kde-bindings] Using threads with QtRuby
From: Uriel <uriel () inbox ! ru>
Date: 2010-02-05 19:52:03
Message-ID: 4B6C76E3.7090000 () inbox ! ru
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic