Re: time consuming function/loop

2005-08-06 Thread Yogesh M
its silly sometimes i miss easy solution or think about it too late --- John Cupitt <[EMAIL PROTECTED]> wrote: > On 8/5/05, Yogesh M <[EMAIL PROTECTED]> wrote: > > thank you for the useful information, is there a > way i > > can give user an option to break the thread, like > > cancel button. >

Re: time consuming function/loop

2005-08-05 Thread John Cupitt
On 8/5/05, Yogesh M <[EMAIL PROTECTED]> wrote: > thank you for the useful information, is there a way i > can give user an option to break the thread, like > cancel button. I have a "cancel" button with a callback that sets a global variable to TRUE. The thread periodically checks this variable an

Re: time consuming function/loop

2005-08-05 Thread Yogesh M
thank you for the useful information, is there a way i can give user an option to break the thread, like cancel button. --- "Brian J. Tarricone" <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yogesh M wrote: > > One of the function take long time and blocks > gt

Re: time consuming function/loop

2005-08-04 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yogesh M wrote: > One of the function take long time and blocks gtk_main. I dont want to put it > in thread because it contains some part of the code which draws[drawing is > not allowed in thread]. is there any way i can make user to interrupt the