Re: Work woth GUI from a thread that was made by pthread_create function

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.


Göran Hasse            email: gh raditex se     Tel: 08-6949270
Raditex AB   
Sickla Alle 7, 1tr                              Mob: 070-5530148

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