Re: how to ensure the threads safe?



"hrs" <huang_rs 163 com> writes:

> I've been working on a multi-thread project based on Gtk2. I used a
>listen thread beside the gtk-main thread.  The listen thread is
>blocked until a message comes from the Linux Message Queue. When the
>listen thread received one message, it will create a dialog and show
>it. But the problem is the dialog cannot work successfully and the
>process was crashed. But in the gtk-main thread, there's no problem
>at all. What's the problem?
>
See http://www.gtk.org/faq/#AEN482

HTH, Rotty
-- 
Andreas Rottmann         | Rotty ICQ      | 118634484 ICQ | a rottmann gmx at
http://yi.org/rotty      | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Python is executable pseudocode, Perl is executable line-noise.




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