[Glade-users] Thread safe?

Imtiaz ur rahaman M imtiaz@cse.iitk.ac.in
Wed, 22 Jan 2003 06:56:41 +0530 (IST)


Well actually YES.

There is the problem. I commented out all the gtk_* in other threads & my 
application works like a charm.

Thanks for your great advice.

imtiaz.

On Wed, 22 Jan 2003, Imtiaz ur rahaman M wrote:

> I am doing this in couple of threads (other than the main thread)
>         
> gtk_text_insert(status_text, NULL, NULL, NULL, mesg, strlen(mesg));
> 
> Where status_text is a handle to the text box on my GUI - setup by the 
> main thread.
> 
> Do u mean to say it will cause problems, irrespective of whether the 
> access to status_text is protected by locks...?
> 
> Thanks,
> imtiaz.
> 
> > Either way the bottom line is - don't make GTK calls from your pthread.
> > 
> > --
> > Jerry Szulinski
> > Lockheed Martin/TACCSF
> > Ph: (505) 853-0257
> > 
> > 
> > -----Original Message-----
> > From: Imtiaz ur rahaman M [mailto:imtiaz@cse.iitk.ac.in]
> > Sent: Monday, January 20, 2003 6:24 PM
> > To: glade-users@ximian.com
> > Cc: Imtiaz ur rahaman M
> > Subject: [Glade-users] Thread safe?
> > 
> > 
> > Hello all,
> > 
> > I would like to know if I can freely (without bothering about gtk & other 
> > libraries) use the pthread library functions while building applications 
> > using glade. I am actually creating some threads & after sometime, one 
> > particular thread blocks _infinitely_ on a socket : sometimes while 
> > reading, sometimes while writing. When it blocks for reading, I am sure 
> > there is some data available.
> > 
> > Can someone who has used pthreads under glade throw some light?
> > 
> > Thanks in advance.
> > imtiaz. 
> > 
> > 
> > _______________________________________________
> > Glade-users maillist  -  Glade-users@ximian.com
> > http://lists.ximian.com/mailman/listinfo/glade-users
> > 
> > _______________________________________________
> > Glade-users maillist  -  Glade-users@ximian.com
> > http://lists.ximian.com/mailman/listinfo/glade-users
> > 
> 
>