mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-26 07:55:44 -04:00
attempt to fix never ending thread. To be tested.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7982 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
10162590ae
commit
2044575067
1 changed files with 14 additions and 11 deletions
|
@ -98,16 +98,19 @@ void pqithreadstreamer::stop()
|
||||||
|
|
||||||
void pqithreadstreamer::fullstop()
|
void pqithreadstreamer::fullstop()
|
||||||
{
|
{
|
||||||
stop();
|
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
|
{
|
||||||
{
|
{
|
||||||
RsStackMutex stack(mThreadMutex);
|
RsStackMutex stack(mThreadMutex);
|
||||||
|
|
||||||
|
mToRun = false ;
|
||||||
|
|
||||||
if (!mRunning)
|
if (!mRunning)
|
||||||
{
|
{
|
||||||
std::cerr << "pqithreadstream::fullstop() complete";
|
std::cerr << "pqithreadstream::fullstop() complete";
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
usleep(1000);
|
usleep(1000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue