Re: Work woth GUI from a thread that was made by pthread_create function
- From: G Hasse <gh raditex se>
- To: jacob berkman <jacob ximian com>
- Cc: <admin kiesoft com>, gtk-devel-list <gtk-devel-list gnome org>, <gtk-app-devel-list gnome org>, gnome-devel <gnome-devel-list gnome org>
- Subject: Re: Work woth GUI from a thread that was made by pthread_create function
- Date: Thu, 7 Feb 2002 23:41:28 +0000 (GMT)
On 7 Feb 2002, jacob berkman wrote:
> On Sat, 2002-02-02 at 07:32, admin kiesoft com wrote: > Hi! > > I'm
> writing GNOME/GTK+ application for Linux that has a few work thread.
> Each thread made by "pthread_create" function). When I try to access
> GUI from child thread (thread that was made by main process) my app is
> locked or dumped. What I have to do to be able wprk with GUI from a
> thread that was made by "pthread_create"? > > Any help will be
> appreciated!
You should not use thread's in a gui-application. You should
make separate processes and communicate whith them. Use
gdk_input_add( fd, GDK_INPUT_READ, GTK_SIGNAL_FUNC(file_function),
&cmd_info );
to jump to a callback if there is some data on the file descriptor.
GH
----------------------------------------------------------------
Göran Hasse email: gh raditex se Tel: 08-6949270
Raditex AB http://www.raditex.se
Sickla Alle 7, 1tr Mob: 070-5530148
131 34 NACKA, SWEDEN
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]