Re: Threads and Gtk2




Javier Godinez said:
Is there a way to gracefully stop a thread from a Gtk2 callback by
using a global?
I am not sure how to get out of the running thread as shown here:

#############################
#!/usr/bin/perl -w

use Gtk2 '-init';
use strict;
use threads;

my $keep_running = 1;

You didn't mark this variable as shared, so the two threads see different values.




-- 
muppet <scott at asofyet dot org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]