Quantcast
Viewing all articles
Browse latest Browse all 18427

question regarding Mandelbrot threading Example

Hi all, I have two questions about Mandelbrot threading Example (http://doc.qt.digia.com/main-snapshot/threads-mandelbrot.html) 1) I implemented a thread similar to RenderThread. when I step in my code, I noticed that after thread wake up, it is extremely slow stepping from the last line of code to the first line of code inside run() forever loop. The last two lines of code in run() forever loop are: restart = false; mutex.unlock(); the first line of code in run() forever loop is mutex.lock(); why is it so slow, is it related to forever? 2) who will call RenderThread::~RenderThread(), it is now shown in the example? more general question is how to delete a worker thread. Thanks,

Viewing all articles
Browse latest Browse all 18427

Trending Articles