hi

i m writing code like...
but it is not working properly..where i have done mistake
in Run() method ,any loop ...and my thread is not stopping...
give me correct suggestions...


QDirThread:: QDirThread(QObject*parent):QThread(parent)
{
m_bAbort = false;
}
QDirThread::~ QDirThread()
{
m_bAbort = true;
}
void QDirThread::run()
{
if(!m_bAbort)
{
DirView(strPath);
}
else
return;
}
void QDirThread::dirViewSleep()
{
usleep(25000);
}
void QDirThread::stop()
{
m_bAbort = true;
}
void QDirThread:irView(QString strPath)
{
//recursivly loading directory
}