Re: threads in GTK+



* On 30 Nov 2001 13:51 CET, Flavio Alberto Lopes Soares <engenharia3 maqplas com br> wrote:
> Hello all.
> Yesterday I made some experiences in a GTK program that I make using
> pthread_ functions but the program crashed.
> I want to know where I can obtain information about threads in GTK ? Is
> possible ?

You have to 1) tell GTK that you want it be thread safe in your
program 2) lock gtk's thread mutex when calling GTK functions from
threads outside of your main thread.

This FAQ entry will tell you what you need to know:

http://www.gtk.org/faq/#AEN462


Good luck,

Daniel

-- 
Daniel Åborg  <tjost ctrl-c liu se>

"IllegalStateException: Can't happen - classname is null, who added this ?"
"You're a valued member to us, [error 4: name not found]!"



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