Re: Problems with Threading Concept

2007-02-19 Thread James Scott Jr
On Mon, 2007-02-19 at 12:42 +0530, naveen wrote: > #include > #include "stdio.h" > #include > > int flag=1,toggle=0; > int i=0; > pthread_t yes_tid; > > void hello() > { > > while (flag) > { > gdk_threads_enter (); > > printf ("%d %d\n",i++,flag); > if (gtk_ev

Problems with Threading Concept

2007-02-18 Thread naveen
Hi all, I have GUI developed based on gtk+-2.2.0, 1) I have button to start some process (continuous). 2) I need to stop that process, when i click the same button. to do the above tasks i developed a small application using threading concepts... // #