Re: avoiding gtk_main() ?
- From: Havoc Pennington <hp redhat com>
- To: Peter Falk <gamsta gmx net>
- Cc: gnome-devel-list gnome org
- Subject: Re: avoiding gtk_main() ?
- Date: 18 Jan 2000 11:09:02 -0500
Peter Falk <gamsta@gmx.net> writes:
> I tried to call "gtk_main()" in a p_thread but this makes the program
> unstable and i am not able to quit my program.
>
Threads are going to be the only way to do this, but indeed, unless
you use them absolutely correctly they will cause instability. Read
the O'Reilly book on programming pthreads and the FAQ questions about
threads.
Your library user is basically required be aware of either the main
loop or pthreads, you can't "hide" these in the lib very well.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]