Re: how to stop a function blocking my app?



>This sounded good. But.....(there's always a but): when I make a thread of
>the function executed by pressing the button, it forms a thread, that is
>okay. But this thread needs some input from the main application. But when
>I do that, nothing happens and if the thread is closed, it complains about
>async-state (doh, I changed some variables) and gives a segmentation fault.
>But is there any way to "flush" these variables so that the separate thread
>also regonizes these changes? That would be real threading.

what do you mean by "thread" - it sounds as if you might be using
fork(2) and not the pthread library, for example.

--p




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