Refreshing a thread

Oct 5, 2009 at 5:37pm
Hi people!

I'm working in a project where there is 2 threads and I'm using QThread, but when one of them is working, the other need to be refreshed. But I have already tried:
qApp->processEvents()
sometimes this freeze, and
sleep()
makes the program too slow...

So, is there another way to do this ?
Oct 5, 2009 at 7:27pm
I also tried with usleep(1), method from QThread, but the loop is too big, it goes 7600 in the while... so it take 5 or 6 seconds more, I need something more quick... Any idea?
Last edited on Oct 5, 2009 at 7:28pm
Topic archived. No new replies allowed.