Re: Threaded Gtk2->main causing seg fault
- From: Kevin Leung <xhidem yahoo com hk>
- To: gtk-perl-list gnome org
- Subject: Re: Threaded Gtk2->main causing seg fault
- Date: Fri, 23 Apr 2004 13:11:10 +0800
Dan Lyke wrote:
You want fork(), not pthread_create() (or whatever the Perl equivalent
is).
My plugin makes use of GSignal. If I use fork(), I can't avoid but
convert the signal to text message before piping the child. The other
issue is that if the parent's GObject instance changed after fork(), the
child will know nothing about the changes. There is rfork() in C, which
has the share memory option, but that is not available in perl. As least
I can't find any document about it. So threads is the only thing
available to me with 'share' variable option.
Kevin Leung
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]