
Originally Posted by
wysota
I guess you didn't try my solution...
yes i do tried solution given by you, but the entire program hangs on clicking "stop thread" button.
void MainWindowImpl::Stop_Thread()
{ flag_stop = true;
freeBytes.release(); //QSemaphore freeBytes;
usedBytes.release(); //QSemaphore usedBytes;
producer->wait();
consumer->wait();
}
void MainWindowImpl::Stop_Thread()
{ flag_stop = true;
freeBytes.release(); //QSemaphore freeBytes;
usedBytes.release(); //QSemaphore usedBytes;
producer->wait();
consumer->wait();
}
To copy to clipboard, switch view to plain text mode
So can u tel me where i m doing wrong.i wil be greatful beause i am reallly stuck here.
Bookmarks