Hi!
The following code seems to lock up an never complete on 1.8.7:
require ‘gtk2’
Gtk.init_add do
Thread.start do
FileUtils.cp ‘a’, ‘b’
Gtk.main_quit
end
end
Gtk.main
For any file a.
Using code similar to that shown in
http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_threadshttp://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_threads
works, but is very slow.
Has anyone encountered similar problems? Anyone have any experience
with threads and 1.9.1?
Gtk.main_quit in a Thread?
I don’t think it will ever causes a “great success”…
On Fri, Jun 18, 2010 at 17:35, KONTRA, Gergely [email protected]
wrote:
Gtk.main_quit in a Thread?
I don’t think it will ever causes a “great success”…
Don’t top-post and, seriously, that wasn’t the issue here.
On 19 June 2010 10:08, Nikolai W. [email protected] wrote:
On Fri, Jun 18, 2010 at 17:35, KONTRA, Gergely [email protected] wrote:
Gtk.main_quit in a Thread?
I don’t think it will ever causes a “great success”…
Don’t top-post and, seriously, that wasn’t the issue here.
Actually, that would have been my first guess too. What
was the issue?
MikeC
On Sat, Jun 19, 2010 at 05:01, Mike C. [email protected]
wrote:
On 19 June 2010 10:08, Nikolai W. [email protected] wrote:
On Fri, Jun 18, 2010 at 17:35, KONTRA, Gergely [email protected] wrote:
Gtk.main_quit in a Thread?
I don’t think it will ever causes a “great success”…
Don’t top-post and, seriously, that wasn’t the issue here.
Actually, that would have been my first guess too. Â What
was the issue?
It doesn’t matter, as it never reaches the Gtk.main_quit, which,
perhaps, should be enqueued in the way described in the article I
mentioned as well.