Re: Threads and Gtk2
- From: "muppet" <scott asofyet org>
- To: "Javier Godinez" <godinezj gmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Threads and Gtk2
- Date: Wed, 19 Oct 2005 15:21:58 -0400 (EDT)
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]